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
Hi Sandy94,
formContext.getAttribute("<field>").setValue() can't support image field. Please refer to this doc:
setValue (Client API reference) - Power Apps | Microsoft Learn
If you want to upload image with JS, you need send a http request. Please refer to this doc:
Image columns (Microsoft Dataverse) - Power Apps | Microsoft Learn
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,219 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156