web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Displaying contact entity image in the form of a custom entity

(0) ShareShare
ReportReport
Posted on by 135

Hi all,

This has been asked before but in the sales forum but that doesn't get near the same traffic as this so hence why I am asking it again.

Taken from that ticket (https://community.dynamics.com/365/sales/f/762/p/289997/932796#932796):

Is it possible to use the entity image uploaded on a Contact on a related entity in Dynamics? 

Example:

I have created a custom entity with a lookup to the contact entity, I would like to display the entity image, which is a photo of the contact, from the related Contact on the main form of the custom entity.

As I see it, there are 2 possible options:

1) As per the suggested solution in the original post by Mahender, copy the entity image from the contact entity to the custom entity and enable entity image to be displayed on the custom entity. The image would display in the same way as in the contact form which renders well.

------------------------------------------------------------------------

Hi,

Have not done this but you can work with entity image using SDK, docs.microsoft.com/.../sample-set-retrieve-entity-images , you can try to write a update plugin on the opportunity entity which can select read image and copy to the opportunity image field.

docs.microsoft.com/.../image-attributes

------------------------------------------------------------------------

2) Use a web resource to display the entity image from the contact within the custom form. It would save one having to duplicate the data, although a possible downside is the screen real estate that would be taken up to display it compared to the entity image. Would there also be a possible performance hit on rendering?

I would really appreciate some guidance?

Thanks in advance,

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    in addition to the two methods you wrote above, in the future (is currently in preview) will be possible to create a PCF control (PowerApps Component Framework) to display the contact image (working in a similar way as the Web Resource)

    Personally I will go with the plugin, you avoid using extra space in the form

    if users don't upload 5MB picture for a contact (considering also the small size of the default image) and you don't have 1 billions contacts, I would not worry about the duplicate data

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans