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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Update SharePoint Onli...
Power Automate
Answered

Update SharePoint Online library lookup column

(0) ShareShare
ReportReport
Posted on by 31

Hi,

 

I have a SQL table and need to sync that data to a SharePoint online library.

 

SQL table as follows,

NameType 1Type 2Type 3DateCountry

 

SharePoint Online library columns as same as above.

 

I did the Power automate flow development. But the issue is in SharePoint type1, type 2, type 3 are lookup columns from another lists. I'm able to do it for single line text field columns.

 

Can suggest how to update data to these lookup columns using flow?

 

Thanks

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @sachk_1 ,

     

    To update SharePoint LookUp columns, you will need to get the source list item ID. In summary, for each item in SQL, you need Get items action to get the specific item ID from source list using Filter query, then use the found ID in LookUp input field in Create item action.

    Solved: How do I fill a Sharepoint Lookup Column in Power ... - Power Platform Community (microsoft.com)

     

    Best regards,

  • sachk_1 Profile Picture
    31 on at

    Hi @v-jefferni ,

     

    Thank you for reply. Here it works like this. As this is a SharePoint library there is a PDF. PDF name is same as Name column in SQL table. So through the flow need to get rows from SQL and then look for each file and then update the remaining field columns in SharePoint. No create item used.

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @sachk_1 ,

     

    At what point did you get stuck? 

     

    Best regards,

  • sachk_1 Profile Picture
    31 on at

    @v-jefferni, I'm stuck with updating values to lookup columns. Can you help?

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @sachk_1 ,

     

    As what it's saying in the link I posted previously, you need to use Get items actions as many times as the LookUp columns. After getting the row ID from source lists, set it in LookUp fields of the Update item action.

     

    So, for each SQL row, get Type1 LookUp column ID value from source list1 based on SQL Type1 texts, Type2 and 3 columns are the same, then in Update item action, use the three ID numbers to populate Type1/2/3 Id fields.

     

    Best regards,

  • sachk_1 Profile Picture
    31 on at

    @v-jefferni, I didnt get what you mean. I'm facing another problem is my sharepoint library contains more than 100k items.

    Actually what needed is get rows from sql table then using flow just checked the "name" column in sharepoint online library and if found the matching row then need to update the fields from sql record.

    Can you help?

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @sachk_1 ,

     

    Please check the flow I created using your logic:

    vjefferni_0-1703658790789.png

    vjefferni_1-1703659126281.png

    vjefferni_2-1703659498488.png

    vjefferni_3-1703659687744.png

     

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 608

#2
Valantis Profile Picture

Valantis 416

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard