Hi Guys,
I have created a custom field on image data type and map it on entity main form. On click of custom entity ribbon an API to external system will be triggered and response will be processed. In the API response, there is image coming in Base64 format. Requirement is to update the image field on the form with the image coming from API in Base64 format.
Is there any way to set the image field via java script, just like how the fields will be set for other datatypes (Ex- formContext.getAttribute("<field>").setValue());
Thanks in advance !
-Sandeep
afaik not possible to do with Xrm scripting (as the one you mentioned) you can update the value using the Web API. For the exact code you can use my tool Dataverse REST Builder, or you use the specific "Manage Image Data" request type or the "Update" request (as you have the base64 value) to update the specific image field.
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,151 Super User 2024 Season 2
Martin Dráb 229,993 Most Valuable Professional
nmaenpaa 101,156