Hi
I want to display dynamics CRM contact image in my online Portal.
Below are the methods i tried
1) By fetching the entityimage field using liquid template which returns System.byte[ ] and when i convert it to base64 the result is not the expected base64 value of the image.
Below is the fetch i used in web template
2) Couldn't trigger script or plugin on change of contact image to get the base64 and store it in hidden field
3) Created Entity Form Metadata for contact and tried to access it in Web template. but no success
Kindly help me to proceed
Any suggestion is appreciated
Thank you :)
*This post is locked for comments
Hi ,
Please try this:-
http://saddamk.blogspot.com/2018/10/display-image-of-product-in-dynamics.html
Hi Hino,
Please share your workaround here so that it can help others facing the same issue. You can also mark that as helpful and close the thread.
Hi Hino,
Can you please share the complete code snippet. I don't see the functions which you used i.e. GetImage() and getRecordId() in your example code.
Thanks for the work around. I wish though we could include the Image field onto the portal web form so the user can upload and manage their image rather than us having to upload it and then rig a way to get that data to the portal. Seems backwards to me
Hi Conterio
I tried a workaround.
On window.onunload of contact form i call a function which gets the contact image's base value and sets in a multi-line text field.
And in the portal side, i set the image by getting the base value from multi-line field.
CRM: In the below script i call hsl.GetContactId function on load which calls hsl.GetImage on window unload
Web Template:
If you ever figure this out, I would like to know your solution. Thanks!
Thank you Alok. I cldnt trigger js on change of any of the field created for entity image and the form save event is not triggering on updating and saving the contact image.
Please look this blog.westmonroepartners.com/entity-image-adding-images-to-dynamics-crm-data-types .It may help you .
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156