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 / Compare two Columns in...
Power Automate
Unanswered

Compare two Columns in List A and List B and update a column in List B

(0) ShareShare
ReportReport
Posted on by 24

Dear Experts,

 

I have a scenario to compare two columns in two SharePoint lists (List A and B) as per below.

 

SShoyombo_0-1711698897742.png

- If any of the values in List A (column Invoice) are found in List B (column invoice), update the corresponding Status field of List B to "Critical" else leave as "Normal"
- The Invoice columns can also be Null (Empty), so the flow should ignore empty from List A when comparing and keep Status in List B as Normal
- The values in Invoice are separated by a comma and can be in any order.
- I want to update List B everytime an item is created in List A.

Please I need your help on the flow steps/logic and diagram.

Regards,

Sam

Categories:
I have the same question (0)
  • v-mengmli-msft Profile Picture
    on at

    Hi @SShoyombo ,

     

    Could you please tell me the type of Invoice column?

     

     

    Best regards,

    Rimmon

  • SShoyombo Profile Picture
    24 on at

    Invoice Column is Multiline Text value.

  • SantoshSarnobat Profile Picture
    30 on at

    Hi @SShoyombo , as per description I have created lists and implemented flow. You can achive this by following below flow structure. I have attached flow zip file, that you can import and configure. 

    SantoshSarnobat_2-1711713582724.pngSantoshSarnobat_3-1711713911830.png

     

    Please feel free to accept the solution if it works 🙂 

    Happy learning !

  • v-mengmli-msft Profile Picture
    on at

    Hi @SShoyombo ,

     

    Here is a method for your reference.

    vmengmlimsft_0-1711714277017.png

     

     

    ______________________________________________________________________________________________________________

    If my answer helps you solve the problem, please accept it as a solution.

     

     

    Best regards,

    Rimmon

  • SShoyombo Profile Picture
    24 on at

    Hi Santosh,

     

    Thanks for the file and support.

    Please see erro message below:

    SShoyombo_0-1711721017378.png

     

  • SantoshSarnobat Profile Picture
    30 on at

    Hi @SShoyombo ,

    Please add condition to check if invoices not null and move compose and apply to each as below. 

    empty(triggerOutputs()?['body/Invoices'])

    SantoshSarnobat_0-1711723530690.png

     

  • SShoyombo Profile Picture
    24 on at

     

    Hello Rimmon,
    Thanks for the support. Please see error message below for your review:

     

    SShoyombo_0-1711724675044.png

     

  • SShoyombo Profile Picture
    24 on at

    Hi Santosh,

     

    Flow ran successfully but List B is not updated

    SShoyombo_1-1711725561039.png

     

  • v-mengmli-msft Profile Picture
    on at

    Hi @SShoyombo ,

     

    Please add another 'Filter array 2' before the 'Filter array 1' to filter items with Invoice not equal to null.

    Then use the result in 'Filter array 1' to filter items with Invoice contains "items('Apply_to_each_2')".

     

    Best regards,

    Rimmon

  • SShoyombo Profile Picture
    24 on at

    Hi Rimmon,
    Apologies for the late response as I was on transit. Please see the additional steps as advised:

    SShoyombo_0-1712052962171.png

    The flow ran successfully but no action as shown below:

    SShoyombo_1-1712053071360.png

    Could you please kindly reconfigure the steps as you did before with the diagrams?

    Regards,

    Samson

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