SBX - Search With Button

SBX - Forum Post Title

Displaying contact entity image in the form of a custom entity

Microsoft Dynamics CRM Forum

Peragin asked a question on 25 May 2019 7:09 AM

Question Status

Suggested Answer

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,

Reply
Guido Preite responded on 25 May 2019 7:52 AM
My Badges
Suggested Answer

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

Reply
Guido Preite responded on 25 May 2019 7:52 AM
My Badges
Suggested Answer

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

Reply

SBX - Two Col Forum

SBX - Migrated JS