Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to append the string to variable only if they are unique strings

How to append the string to variable only if they are unique strings


Super User
Super User

  • Declare an Array variable.
  • Loop through strings and inside the loop check condition if string exist in array. If not add to array.
  • Finally Loop through array and use append to strings to generate required string.


Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community
Not applicable

I need it to be in string format for further use in the flow. so i wont be able to use the array option. also im not sure how to check if string exist in array. can you solve both these problems please.

Helpful resources

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

New Process Advisor Capabilities carousel.png

Read the blog for the latest news

Read the latest about new experiences and capabilities in the Power Automate product blog.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

AI Builder AMA June 7th carousel (up on May 25th, take down June 8th) (1).png

'Ask Microsoft Anything' about AI Builder!

The AI Builder team invite you to ask questions and provide helpful answers at our next AMA.

Users online (1,515)