Hi all,
I want to delete, automatically with a Power Automate flow, the image file content attached to the Image field on my Dataverse QuoteDetail form:
I try with Dataverse unbound action "DeleteFile" as mentioned in these following links:
https://linnzawwin.blogspot.com/2020/09/move-attachment-from-file-field-of.html#InitializeVariables
But the action step "DeleteFile" occur this error 'fileattachment With Id = '...GUID value...' Does Not Exist"'.
I passed to the action step the file Id ("ft_img_prodottoid" attribute) but the action always occurs the error above.
How can I delete the content of the image field using Power Automate cloud flow, please??
Solved! Go to Solution.
I made a tutorial video about this
Please have a look
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogHi @David_Pezzoli ,
What's your trigger?
Could you click the flow run history and check the value of ft_img_prodottoid?
In your ft_img_prodottoid field , does this value exist?
Best Regards,
Wearsky
Its a look up value so that contains the logic name and GUID. To get the GUID try the below
triggerOutputs()?['body/_ft_img_prodottoid_value']
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogMy Trigger is Create & Update of Quote Product row (quotedetail)
About history:
In ft_img_prodottoid field exists a GUID value
Thanks for your update. Could you go to CRM record and right click the lookup and open in a new window. Compare the Id from the url and run history.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogHi @abm ,
it isn't a Lookup field because:
e.g.
"ft_img_prodotto": "iVBORw0KGgoAAAANSUhEUgAAAIoAAACKCAYAAAB1h9JkAAAAAXNSR0IArs4c6.........."
"ft_img_prodottoid": "dc5e9d1f-10bc-ec11-983f-000d3a659931"
"ft_img_prodotto_url": "/Image/download.aspx?Entity=quotedetail&Attribute=ft_img_prodotto&Id=d85e9d1f-10bc-ec11-983f-000d3a659931&Timestamp=637855506063018377"
"ft_img_prodotto_timestamp": 637855506063018400
Hi
Above id you are passing and it is getting the error.
Could you pass this id below and see
d85e9d1f-10bc-ec11-983f-000d3a659931
.
Hardcode the value and test it.
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogHi, After pass
d85e9d1f-10bc-ec11-983f-000d3a659931
Occur Same error: fileattachment With Id = d85e9d1f-10bc-ec11-983f-000d3a659931 Does Not Exist
I have some answers for you. I did a quick test now.
If you have a file type then you can delete using the Ubound action step. In your case you have image data type which is stored in Azure blob storage. You can't directly delete via the connector. You need to use the HTTP API to delete the record. Documentation doesn't says about delete. I will have a look on this and update you soon.
Image columns (Microsoft Dataverse) - Power Apps | Microsoft Docs
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blog
I made a tutorial video about this
Please have a look
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blogThe steps in your tutorial do not work. The file is never found when using the DeleteFile unbound action.
Same problem here. And none of the proposed solutions in this thread work.
Most likely your mapping is not quite and thats the reason file is never found. If you could post a screenshot of your flow I could look into this.
Thanks
If you liked my response, please consider giving it a thumbs up
Proud to be a Flownaut!
Learn more from my blog