Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Use form response to Delete a row in Excel (online)

(0) ShareShare
ReportReport
Posted on by

I have set up a database for lab inventory. Each item has a unique barcode. I created a form that staff can scan barcodes on the item. I want to set up a flow that uses this form submission data to delete the row corresponding to that particular barcode. Please help. I have tried multiple things and cant figure it out. I dont have a ton of code experience and dont believe I can use Dynamic content for all of this.

  • MafazAnsar Profile Picture
    14 on at
    Re: Use form response to Delete a row in Excel (online)

    Hi, 

     

    I'm also having a similar issue. tried the solution as above. Doesn't seems to be working out. I have a table and a form created. The idea is that, If the data entry person realises the data submitted contains an error, he will have to submit the row no via the form to delete that specific row. Below are my form, table, flow and the error message I get at the end. Appreciate your assistance.

     

    The form

    1.JPG

    Table

    2.JPG

    The flow

    3.JPGThe error message

    4.JPG

  • GabrielStJohn Profile Picture
    on at
    Re: Use form response to Delete a row in Excel (online)

    Hello, @Anonymous!

     

    Thank you for posting to the Flow Forum! Our team is dedicated to creating a positive product experience and value your insight on how we can improve our product features! I see that one of the replies to your post may be the solution to your problem! If your needs have been met, please mark the reply as the “Accepted Solution”!

     

    Thank You!

    -Gabriel

  • faustocapellanj Profile Picture
    1,662 on at
    Re: Use form response to Delete a row in Excel (online)

    Hi @Anonymous

     

    The Respose ID you get from the Dynamic content is the one you need. From there, all the data from the Microsoft Form will be available in Flow. If you look at the screenshots uploaded by @v-xida-msft, you can see in the Delete a row action that Product Barcode is being selected from the Dynamic content available from Microsoft Forms.

     

    I can say that follow the steps provided by @v-xida-msft and they worked just fine. As for uploading screenshots to the forum, save the image file on your computer and then click on the Photos button available in the text editor where you type your response. This will walk you through how to select the file from the respective location.

     

    Please do not hesitate to reach out if you have any questions or are experiencing any difficulties in Flow.

     

    Regards.

  • Community Power Platform Member Profile Picture
    on at
    Re: Use form response to Delete a row in Excel (online)

    My form is through microsoft forms. I have opted to try and delete a row in google sheets rather than excel. I tried to construct the flow in the way you listed. However, in the get response details column, my only option for response id is the dynamic content option that says response id. I believe this has to somehow translate to the barcode number being submitted in the form in order for my flow to work. I am not sure how to upload screen shots in this forum.

  • v-xida-msft Profile Picture
    on at
    Re: Use form response to Delete a row in Excel (online)

    Hi @Anonymous,

     

    Could you please share a screenshot of your flow's configuration?

    Could you please show more details about the form that you mentioned? Is it a Microsoft Form?

    Where does your Excel file store? Is it existed in your SharePoint?

     

    I assume that your Excel file is existed in your SharePoint, I have created it on my side and the data structure of it as below:1.JPG

     

    I have made a test on my side and please take a try with the following workaround:

    • Add a "When a new response is submitted" trigger.
    • Add a "Apply to each" action, input parameter set to output of the trigger.
    • Within "Apply to each" action, add a "Get response details" action, specify Form Id and Response Id. Then add a "Delete a row" action of Excel Online (Business) connector, specify Location, Document Library, File and Table. The Key Column field set to Barcode column in your Excel table, Key Value field set to Product Barcode dynamic content of the "Get response details" action.

    Note: The Product Barcode dynamic content is the answer to the Product Barcode question in my Microsoft Forms. In addition, please make sure that you have formatted the data of your Excel file stored within your SharePoint library as a table.

     

    Image reference:2.JPG

    The flow works successfully as below:3.JPG

     

    4.JPG

     

     

    Best regards,

    Kris

     

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1