Skip to main content

Notifications

Power Automate - General Discussion
Answered

Delete OneDrive Image from MS Forms

(0) ShareShare
ReportReport
Posted on by 33

Hi,

When I submit a form with an attachment it is stored in OneDrive. I am trying to delete to file within Power Automate but can't seem to figure out how to grab the ID of the file. 

 

I have grabbed the File attachment from OneDrive...

Rob90_1-1673281834431.png

 

Later down in the flow, I then attempt to delete the file the only available option is for file content.

Rob90_2-1673282193976.png

Thanks

 

Does anyone know a workaround to get the ID or identifier of a OneDrive file?

 

 

  • Rob90 Profile Picture
    Rob90 33 on at
    Re: Delete OneDrive Image from MS Forms

    @v-chengfen-msft perfect, thank you. I used the Parse JSON and it worked first time

     

    Thank you 

  • Verified answer
    Re: Delete OneDrive Image from MS Forms

    Hi @Rob90 ,

    I made a template for your reference

    Here is form

    vchengfenmsft_1-1673318403444.png

     


    (This method does not use Parse JSon)

    vchengfenmsft_0-1673318091089.png

     

    If you want to use [Parse Json], you should be able to get the id of the file after parsing, and you can delete the file directly through the file id

    vchengfenmsft_2-1673318541135.png

     

     

    Best Regards

    Cheng Feng

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,495

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,822

Leaderboard