Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Connectors
Unanswered

Sync Sharepoint list with SQL Stored Procedure

(0) ShareShare
ReportReport
Posted on by 85

Hello everyone,

I have no problem using 'Get Rows' to refresh a sharepoint list but results from 'Execute stored procedure' seems to be a table. When using the output of parse JSON to add items to my SP list I see the error.

'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@body('Parse_JSON')?['content']?['Table1']' is of type 'Null'. The result must be a valid array. 

I've seen this brought up in the community a few times but can't see an approach that converts the table into an array. If anyone can point me to a better approach for this process I'd be very grateful.

  • abm abm Profile Picture
    32,472 Most Valuable Professional on at
    Re: Sync Sharepoint list with SQL Stored Procedure

    Hi  @dflemming 

     

    Could you please post a screenshot of your run history of Get Rows?

     

    Thanks

  • dflemming Profile Picture
    85 on at
    Re: Sync Sharepoint list with SQL Stored Procedure

    Thanks abm,

    I've looked at that post a few times but can't understand the suggested solution: "You can try to store the content that needs to be configured in Content field in an Object variable, and then populate the variable in Content field"

    I think I need a few steps exposed before I can implement that. What does populate the variable in Content field look like?

  • abm abm Profile Picture
    32,472 Most Valuable Professional on at
    Re: Sync Sharepoint list with SQL Stored Procedure

    Hi @dflemming 

     

    This post could help.

     

    Solved: Stored Procedure - ['Table1'] is of type 'Null' - Power Platform Community (microsoft.com)

     

    Thanks

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492

Featured topics