Skip to main content

Notifications

Power Automate - General Discussion
Answered

How to delete rows from csv file using Power Automate

(0) ShareShare
ReportReport
Posted on by 3

Hi, I need to delete the highlighted rows in the attached screenshot, from Power Automate. They are dynamic strings that are added in each report, but they are not necessary to generate the json, can you think of something?

 

migdc_1-1669044892381.png

 

 

 

  • GUSers-OTP Profile Picture
    GUSers-OTP 29 on at
    Re: How to delete rows from csv file using Power Automate

    Hello, I came across this thread that appears to be an efficient way to ignore my irrelevant first row of data in my CSV file. However, I'm not grasping everything that needs to happen here.

     

    I think that I've essentially got the same situation as @migdc described. I've included a screenshot for reference.

    In Dezhi's (@v-dezhili-msft) post, there are two Compose actions, so I'm not sure what should be in that first one as it's referenced in the second one.

    Also, I'm assuming the 'ID' reference is the first actual column name, so mine would be 'Header1', right?

    Then is the [1] referencing something specific? I'm not sure I'm following that piece.

     

    Needless to say, my initial attempt at incorporating this action resulted in a failure, so looking for some clarification to help put that in place and start working through the remainder of what I'm trying to piece together for handling my CSV file.

  • Verified answer
    Re: How to delete rows from csv file using Power Automate

    Hi @migdc ,

    A csv file is essentially a string, and you can manipulate it with Split().
    I did a test hope it can help you.

     

    concat('ID',split(outputs('Compose'),'ID')[1])

     

    vdezhilimsft_0-1669085093701.png
    vdezhilimsft_1-1669085093702.png

    Best Regards,

    Dezhi

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,475

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,767

Leaderboard