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 Automate
Answered

Compare columns

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I am trying compare two columns in Sharepoint list. Its column A and B. What will be in A and wont be somewhere in B, I want to save to column C.

 

picture.png

 

Can I ask you for help please?

 

Thank you,

Jan

Categories:
I have the same question (0)
  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @Anonymous  so you are looking to compare if Column B value does not contain value of Column A, then update value of Column C?

     

    Also can you provide the data type of Column A and Column B in SharePoint?

  • Community Power Platform Member Profile Picture
    on at

    Almost you have right. I dont need update value in column C - this column is empty and I need insert only non exist values in B.

     

    Data type will be string.

     

    Best regards,

    Jan

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    okay, i didnt get this "insert only non exist values in B", can you provide sample values which can be in Column A and column B, for me to understand how to provide best suggestion on doing the comparison?

  • Community Power Platform Member Profile Picture
    on at

    Yea, no problem.

     

    This attachment will show you, what I need. I have columns Test1 and Test2. I need take value from Test1 and check if exist in Test2. If not, insert it to column No exist in Test2.

     

    test.png

     

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    okay, so looks like you are using number values in the Test1 and Test2 columns, would that be the case in actual values? If yes then the comparison should be equals not contains and if the columns are to store text values then comparison can be contains, let me know.

  • Community Power Platform Member Profile Picture
    on at

    It will be text with numbers

     

    Best regards,

    Jan

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    You can configure the condition as shown in below screenshot

    annajhaveri_0-1611831939143.png

     

  • Community Power Platform Member Profile Picture
    on at

    Hello,

     

    I tried you recommendation and it doesnt work. It gave me error that first argument must be object, array or string.

    I tried inicialization to array but it still doesnt work. 😕 Have you some tips please?

     

    Error: 

    flow_error.png

     

    flow_error3.png

     

     

  • annajhaveri Profile Picture
    8,531 Most Valuable Professional on at

    @Anonymous  the data type of Test1 and Test 2 does not look same. Can you add two compose actions before the condition, and then assign Test 1 value to 1st Compose action and Test 2 value to 2nd Compose action and share the screenshot of both compose action from the flow run, for me to see what value is stored in Test1 and Test2?

  • Community Power Platform Member Profile Picture
    on at

    No problem 🙂 I created again in EN version. It could be better for you.

     

    compose.png

     

    compose2.png

     

    compose3.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

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard