Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

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

  • Tbabe Profile Picture
    81 on at
    Re: Avoid Duplicate values in Semi Column Delimiter

    Thank you it worked

  • Tbabe Profile Picture
    81 on at
    Re: Avoid Duplicate values in Semi Column Delimiter

     sorry the compose3 wasn't suppose to be there

  • Verified answer
    Expiscornovus Profile Picture
    31,643 Most Valuable Professional on at
    Re: Avoid Duplicate values in Semi Column Delimiter

    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
    Re: Avoid Duplicate values in Semi Column Delimiter

    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

  • Tbabe Profile Picture
    81 on at
    Re: Avoid Duplicate values in Semi Column Delimiter

    Thanks i will try it now

  • Expiscornovus Profile Picture
    31,643 Most Valuable Professional on at
    Re: Avoid Duplicate values in Semi Column Delimiter

    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
    Re: Avoid Duplicate values in Semi Column Delimiter

    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
    31,643 Most Valuable Professional on at
    Re: Avoid Duplicate values in Semi Column Delimiter

    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
    Re: Avoid Duplicate values in Semi Column Delimiter

    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
    31,643 Most Valuable Professional on at
    Re: Avoid Duplicate values in Semi Column Delimiter

    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

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow