Skip to main content

Notifications

Community site session details

Community site session details

Session Id : SV6IzzQbNVe3CkJRft7IrT
Power Automate - Building Flows
Answered

Update Sharepoint List from SQL Table

Like (1) ShareShare
ReportReport
Posted on 3 Aug 2020 20:57:16 by 237

Hi, I'm fairly new to the power platform and I have been tasked with creating an inventory catalog that matches up with our back end SQL data. I am creating this catalog using powerapps and I am using sharepoint as a database to connect the two. FYI this would be much easier if our company could afford to give all of our users premium powerapps licenses because then I could just connect it directly to the source data; however, we are a small company and cannot afford 100 or so premium powerapps licenses. 

 

Anyway, so my issue here is how do I keep this information up to date as frequently possible? 

-I have been trying to leverage our 1 premium power automate license to workaround this issue, following and recreating the solutions of this post and the template. One solution is an update/insert solution and the other is just deleting all the items in the SP list and reuploading the refreshed data from SQL. 

 

Post 1: https://powerusers.microsoft.com/t5/Building-Flows/SQL-to-Share-Point-Insert-Update/td-p/307864

Template 1: https://us.flow.microsoft.com/en-us/galleries/public/templates/86b35d52959b42e8b615b5308a2122f3/refresh-sharepoint-list-items-from-sql-server-on-a-recurring-basis/

 

Both of these either have timeout issues or they just take forever. Does anyone have any ideas to help with this process without paying out more money? 

 

Other info: I have maxed the concurrency control out and the pagnation is on with a 15000 threshold limit

The list contains 14,918 items 

  • bhanney2323 Profile Picture
    237 on 25 Jul 2022 at 17:16:46
    Re: Update Sharepoint List from SQL Table

    So I would suggest opening a new topic as we are kinda drifting here from the original post and tbh I have to get back to work lol. But you may be able to achieve whatever you're trying to do in those nested apply to each actions in a more efficient way that someone more versed at https://powerusers.microsoft.com/t5/Microsoft-Power-Automate/ct-p/MPACommunity could probably take a crack at. But my last suggestion would be for both apply to each actions set the concurrency control to the max - 

    bhanney2323_0-1658769426224.png

     

  • khari14 Profile Picture
    14 on 25 Jul 2022 at 17:15:58
    Re: Update Sharepoint List from SQL Table

    Now I see another problem. I see that flow is success but the create item did not do anything in my destination Sharepoint list as below. Please helpsucess after pagination to 100.PNG

  • khari14 Profile Picture
    14 on 25 Jul 2022 at 17:12:31
    Re: Update Sharepoint List from SQL Table

    As you see below, I have set pagination to 100 on get rows and below is the same where it will stay forever. stays.PNG

  • bhanney2323 Profile Picture
    237 on 25 Jul 2022 at 17:11:59
    Re: Update Sharepoint List from SQL Table

    If your table isn't any larger than 5000 records you're trying to pull set it to that and lmk if it is still getting stuck. If it is then I would first test it in a separate flow that just gets the rows and thats it and see if that works. If that doesn't work then I would remake the connection 

  • khari14 Profile Picture
    14 on 25 Jul 2022 at 17:09:08
    Re: Update Sharepoint List from SQL Table

    No Pagination as below. My rows are hardly 2000 rows total. Do I have to mark pagination of 3000 for 2000 rows?

     

    No Page.PNG

  • bhanney2323 Profile Picture
    237 on 25 Jul 2022 at 17:03:58
    Re: Update Sharepoint List from SQL Table

    Just so I'm understanding this right, the action 'Get rows' is where it stalls and gets stuck? If so, how big is the table you are trying to pull? Are you using pagination in the settings of that action? Is there a condition you can use to make the pull smaller? Have you tried remaking the SQL connection? If it gets stuck there, I would even make a brand new flow with a manual button trigger and then a duplicate 'Get rows' action to see if it works there. 

  • khari14 Profile Picture
    14 on 25 Jul 2022 at 16:23:51
    Re: Update Sharepoint List from SQL Table

    @Anonymous  @bhanney2323  -   Please check below flow which I have built from the template.. Till Get Rows, it works after that it hangs there and does not go any further as it stays grey during running. 

     

    flow.PNG

     

  • bhanney2323 Profile Picture
    237 on 25 Jul 2022 at 14:19:48
    Re: Update Sharepoint List from SQL Table

    Can you post some screenshots of your flow, I'd be happy to take a look

  • bhanney2323 Profile Picture
    237 on 25 Jul 2022 at 14:19:05
    Re: Update Sharepoint List from SQL Table

    We just have the $15 premium plan so we can use SQL connectors  

  • Community Power Platform Member Profile Picture
    on 25 Jul 2022 at 14:17:48
    Re: Update Sharepoint List from SQL Table

    We had the [Per user plan with attended RPA] which was $40.00 usd, but has limited on the flow process.

    Due to a small amount of people knowing how to using power automate and flow being processed. 

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard