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:
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.
Hi @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?
Its a look up value so that contains the logic name and GUID. To get the GUID try the below
My Trigger is Create & Update of Quote Product row (quotedetail)
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.
Hi @abm ,
it isn't a Lookup field because:
Above id you are passing and it is getting the error.
Could you pass this id below and see
Hardcode the value and test it.
Hi, After pass
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.
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.
Keep up to date with current events and community announcements in the Power Automate community.
A great place where you can stay up to date with community calls and interact with the speakers.
Check out the latest Community Blog from the community!