web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Removing Non-Existent IDs from Column Based on Another List

(0) ShareShare
ReportReport
Posted on by

Hello,

I have a situation where I need to remove certain IDs from the UserGroupStatus list if they no longer exist in the TB_FORM list. In the UserGroupStatus list, the TaskID column contains a comma-separated list of IDs (e.g., 18, 17, 5). My goal is to remove the IDs that do not exist in the TB_FORM list while keeping the ones that do.

For example, let's say I have the following values in the UserGroupStatus list's TaskID column: 18, 17, 5. In the TB_FORM list, I only have one record with the ID 5. In this case, I would like the Power Automate flow to remove the IDs 18 and 17 from the TaskID column, while retaining the ID 5 since it exists in the TB_FORM list.

One important detail to consider is that the IDs in the TaskID column of the UserGroupStatus list are separated by commas. For example, the TaskID column might contain values like 7, 17, 8, and so on.

Could you please help me with the Power Automate configuration to achieve this? I would greatly appreciate any guidance or suggestions.

Thank you!

I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at
    Re: Removing Non-Existent IDs from Column Based on Another List

    Hi @Anonymous ,

     

    I made a sample for you.

    vxiaochenmsft_0-1686808887857.png

    vxiaochenmsft_1-1686808897307.png

    vxiaochenmsft_2-1686809987540.png

    vxiaochenmsft_3-1686810061703.png

    replace(trim(variables('var')),' ',',')
    vxiaochenmsft_4-1686810129189.png
    split(items('Apply_to_each')?['TaskID'],',')
    concat(items('Apply_to_each_2'),' ')
    vxiaochenmsft_5-1686810162061.png

     

    Best Regards,

    Wearsky

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 691 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 431 Moderator

#3
developerAJ Profile Picture

developerAJ 266

Last 30 days Overall leaderboard