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
Unanswered

If Sharepoint List Items Meet Condition then Get Data from SQL and Update them

(0) ShareShare
ReportReport
Posted on by 40

I feel like I must be missing something as this seems so simple but if I have a sharepoint list that I need to look at for a condition in one column, grab items nmatching condition, check SQL (using key from SP List to match key from SQL) for what they need to be updated to and then update sharepoint list. (Basically sync a column from SQL to Sharepoint List)

 

Original Sharepoint List

Key    ||  Column A || Column B || Column C

Key 1 ||       Tom     ||     Red      ||      1

Key 2 ||       Joe       ||     Red      ||      1

Key 3 ||       Ann      ||     Red      ||      2

Key 4 ||       Mary    ||     Red      ||      3

Key 5 ||       Tom     ||     Red      ||      3

 

Where Column C is not 3 check SQL Column with cooresponding Key row and find value in colum 5 then use that value to update sharepoint Column C for the cooresponding Key row

 

SQL

Key    ||  Column 1   || Column 2   ...  || Column 5

Key 1 ||       Up         ||     Apple         ||      3

Key 2 ||       Down    ||     Orange       ||      1

Key 3 ||       Down    ||     Bannana     ||      3

Key 4 ||       Down    ||     Pear            ||      3

Key 5 ||       Up         ||     Grape         ||      3

 

 

Updated Sharepoint List Expectation

Key    ||  Column A || Column B || Column C

Key 1 ||       Tom     ||     Red      ||      3

Key 2 ||       Joe       ||     Red      ||      1

Key 3 ||       Ann      ||     Red      ||      3

Key 4 ||       Mary    ||     Red      ||      3

Key 5 ||       Tom     ||     Red      ||      3

 

I can run this on a schedule every few minutes or when a SQL row matching the original SP List condition row is modified.

I have the same question (0)
  • v-bacao-msft Profile Picture
    on at
    Re: If Sharepoint List Items Meet Condition then Get Data from SQL and Update them

     

    Hi @BARD ,

     

    Could you share a screenshot of the Flow configuration?

    Basically, you just need to find the specified item according to the key column to update.

     

    Best Regards,

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