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 / Avoid Duplicate values...
Power Automate
Unanswered

Avoid Duplicate values in Semi Column Delimiter

(0) ShareShare
ReportReport
Posted on by 81

I have this flow that is running but the issue now is how to get rid of the duplicate values in my column 3;8,3,3, . I do not want it to keep repeating the id and where do i insert the logic? Below is a Screenshot. Thanks3 appears three times, i want to be able to see just one 33 appears three times, i want to be able to see just one 3my flow 1my flow 1my flow 2my flow 2

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Tbabe,


    It looks like you have two delimiters, is that correct? In the example are we evaluating two or four items?

     

    If it is four items you could use some intersection, split and join functions to get the unique item values.

     

    Below is an example with a couple of compose actions.

     

    join(intersection(split(join(split(outputs('Compose'), ';'), ','), ','), split(join(split(outputs('Compose'), ';'), ','), ',')), ';')

     

    delimiter.pngdelimitertestresult.png

  • Tbabe Profile Picture
    81 on at

    Thank you for your response, so the project is to append the Id( column) from a sharepointlist (target list) to another column (destination list) . which that is working fine but just need it to be perfect by not repeating same id's when it is rerun. so i tried this and i got the following errors. Screen Shot 2022-01-07 at 7.31.20 AM.png

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Tbabe,

     

    Thanks for the clarification. My example was to clean it up afterwards.

     

    If you want to prevent the flow appending an existing id in that string value it probably is easier to use an indexOf function in an expression to search if the id already exists in the string value.

     

    Can you show me the configuration of how you append the id? This way I can share a specific example for your situation.

  • Tbabe Profile Picture
    81 on at

    sure... its quite lengthy,😊Screen Shot 2022-01-07 at 7.48.43 AM.pngScreen Shot 2022-01-07 at 7.51.27 AM.pngScreen Shot 2022-01-07 at 7.52.10 AM.pngScreen Shot 2022-01-07 at 7.53.49 AM.pngScreen Shot 2022-01-07 at 7.54.21 AM.pngScreen Shot 2022-01-07 at 7.54.44 AM.pngScreen Shot 2022-01-07 at 7.55.24 AM.png

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Tbabe,

     

    Thanks for sharing the screenshots.

     

    You can add a nested condition action in the If No section of your Condition 3 action. In this new condition action check if the appendeddataId variable contains the documentId. If not, append. If Yes, do nothing.

     

    nestedcondition_appendeddateid.png

  • Tbabe Profile Picture
    81 on at

    Thanks i will try it now

  • Tbabe Profile Picture
    81 on at

    Hi, I did what you asked , but got an error, I'm new to Power Automate, is there anything i should add to the flow? please find below an attachmentScreen Shot 2022-01-07 at 9.58.58 AM.pngScreen Shot 2022-01-07 at 9.59.10 AM.png

  • Verified answer
    Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Tbabe,

     

    I see you added the row to the existing condition with an AND operator. The evaluation of that condition will probably always be false since appendeddataId can't be empty and contain data at the same time. 

     

    newcondition.png

     

    What I proposed was to add another condition action. Can you try this setup instead?

     

     

    newcondition02.png

     

    Btw, can you also share a screenshot of the config the Compose 3 action with the union function?

  • Tbabe Profile Picture
    81 on at

     sorry the compose3 wasn't suppose to be there

  • Tbabe Profile Picture
    81 on at

    Thank you it worked

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard