Hi Guys,
Now with the "Image" datatype available in CDS, I need to populate this field from powerautomate flow. The idea is to:
- Publish a flow with http trigger (json input)
- Third party applications will call the flow with two input fields: record id and the image as "binary string".
I am not sure how to accomplish this.
- Are the images saved in base64 format?
Looking forward.
- S
Solved! Go to Solution.
You can use the below CDS Action
You need to pass the content as JSON format as below:
{
"$content-type": "image/png",
"$content":"base64string"
}
Then use the upload file or image dataverse / CDS action:
You can use the below CDS Action
You need to pass the content as JSON format as below:
{
"$content-type": "image/png",
"$content":"base64string"
}
Then use the upload file or image dataverse / CDS action:
Hi @Mira_Ghaly ,
Just one more question. Now that I can insert images and files, I was keen to know how to delete these. Composing a JSON with $content empty string ("") or "null" doesn't actually delete the image/file field (please refer the following two images)
User | Count |
---|---|
16 | |
16 | |
14 | |
9 | |
8 |
User | Count |
---|---|
28 | |
27 | |
24 | |
23 | |
14 |