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 / Question - Trying to c...
Power Automate
Answered

Question - Trying to copy entries from sharepoint list to another

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I am trying to transfer entries from one sharepoint list to another. I am getting the following error when the flow fails. 

 

ExpressionEvaluationFailed. The execution of template action 'Foreach' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['body/value']' is of type 'Null'. The result must be a valid array.

Categories:
I have the same question (0)
  • Anchov Profile Picture
    1,986 on at

    To assist you in troubleshooting, I'll need more information from your flow. Could you please provide screenshots that include the action preceding the one with the error? This additional context will help me better understand the flow and identify the potential issue.

  • PowerNovice Profile Picture
    on at

    Hi @Anchov ,

     

    PowerNovice_3-1700123379563.png

     

     

  • Anchov Profile Picture
    1,986 on at

    The ‘For Each’ action requires an array as input. However, the SharePoint action, ‘When an item is created', only returns a single object and not in the format of an array. Therefore, you don’t need a 'For Each' action. I’m not sure what you have in your 'For Each' action, but you should be able to extract it from the ‘For Each’ action.

    If you’re trying to create a new SharePoint item in another list, you can perform that action right under the trigger. Use the trigger outputs as needed to configure the inputs of the ‘Create a new item’ action.

    I hope this helps!


    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    Cheers!
    Rick Hurt

  • PowerNovice Profile Picture
    on at

    Hi @Anchov ,

     

    Please see below what my for each contains. The address is another sharepoint list i am trying to populate from one sharepoint site, to another sharepoint site. 

     

    PowerNovice_0-1700148864567.png

     

  • Verified answer
    Anchov Profile Picture
    1,986 on at

    There's no need for this to be in the "For Each" action since there is no array of objects to loop through.

    Anchov_1-1700149571002.png

     

  • PowerNovice Profile Picture
    on at

    @Anchov Hi, 

     

    Sorry im really knew to power automate. Does the destination sharepoint file need to be pre populated with the column headers from the source sharepoint list? Or will it populate it by itself, because its currently not populating. 

     

    Thank you for your help. 

  • Anchov Profile Picture
    1,986 on at

    To successfully transfer data, you'll need to map the columns from your source list to the corresponding columns in your destination. If you require further assistance, please provide screenshots of your flow, specifically focusing on the mapping configuration, and I'll be happy to help.

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 570

#2
Valantis Profile Picture

Valantis 405

#3
11manish Profile Picture

11manish 350

Last 30 days Overall leaderboard