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 / Sync Sharepoint list w...
Power Automate
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.

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,985 Most Valuable Professional on at

    Hi @dflemming 

     

    This post could help.

     

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

     

    Thanks

  • dflemming Profile Picture
    85 on at

    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,985 Most Valuable Professional on at

    Hi  @dflemming 

     

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

     

    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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 474

#2
11manish Profile Picture

11manish 268

#3
David_MA Profile Picture

David_MA 243 Super User 2026 Season 1

Last 30 days Overall leaderboard