web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / MS Dataverse How to de...
Power Automate
Unanswered

MS Dataverse How to delete image field row with Power Automate

(0) ShareShare
ReportReport
Posted on by 230

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:

2022-04-13 10_35_39-OneNote for Windows 10.png

I try with Dataverse unbound action "DeleteFile" as mentioned in these following links:

Solved: Deleting image/file from CDS image/file field with... - Power Platform Community (microsoft.com)

https://linnzawwin.blogspot.com/2020/09/move-attachment-from-file-field-of.html#InitializeVariables

 

David_Pezzoli_1-1649839451395.png

David_Pezzoli_2-1649839529280.png

 

 

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??

 

 

 

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    on at

    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?

     

    Best Regards,

    Wearsky

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @David_Pezzoli 

     

    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

  • David Pezzoli Profile Picture
    230 on at

    My Trigger is Create & Update of Quote Product row (quotedetail)

    About history:

    David_Pezzoli_1-1650026513316.png

     

     

    David_Pezzoli_0-1650026465603.png

     

    In ft_img_prodottoid field exists a GUID value

     

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @David_Pezzoli 

     

    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

  • David Pezzoli Profile Picture
    230 on at

    Hi @abm ,

    it isn't a Lookup field because:

    • ft_img_prodotto is a image type field
    • There is no _ft_img_prodottoid_value in JSON OData structure but only:

    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

     

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    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. 

    image.png

    @David_Pezzoli

  • David Pezzoli Profile Picture
    230 on at

    Hi, After pass 

    d85e9d1f-10bc-ec11-983f-000d3a659931

    Occur Same error: fileattachment With Id = d85e9d1f-10bc-ec11-983f-000d3a659931 Does Not Exist

     

    David_Pezzoli_0-1650027747578.png

     

  • David Pezzoli Profile Picture
    230 on at

    David_Pezzoli_0-1650028139380.png

     

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @David_Pezzoli 

     

    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

     

     

     

     

  • Verified answer
    abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @David_Pezzoli 

     

    I made a tutorial video about this

     

    Please have a look

     

    https://youtu.be/WZRE0o4-pH8

     

    Thanks

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard