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 / Is it possible to remo...
Power Automate
Unanswered

Is it possible to remove duplicate lines in a string variable?

(0) ShareShare
ReportReport
Posted on by 53

Hello

 

Is it possible to remove duplicate lines in a string variable? The content of the variable is a csv file.

 

I would prefer not to convert it to an array.

 

Thanks!

Categories:
I have the same question (0)
  • mahoneypat Profile Picture
    1,720 on at

    Converting it to an array is the easiest way to do it.  You can convert it back after the duplicates are removed fairly easily too probably.

    Pat

     

  • PowerAutomate3 Profile Picture
    53 on at

    @mahoneypat  thanks what would be the most efficient way to convert a string or csv into array? I have seen online some processes like getting the headers, then separating the lines, then separating each comma separated value etc but it seems quite inefficient and I need this to run fast. Btw, I cannot use premium flows!

  • Verified answer
    mahoneypat Profile Picture
    1,720 on at

    I use the approach shown in this video.  Works well.

    How to Parse a CSV in Microsoft Power Automate Super Fast, Free and Easy. - YouTube

    Pat

     

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