cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BarneyHillman
New Member

Microsoft flow to sharepoint list

Hello there,

 

I have tried to create a flow to make a ticketing system where people submit a form and it automatically gets put into a SharePoint list.

 

When my flow runs I get the following error:

The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['body/resourceData/responseId']' is of type 'Integer'. The result must be a valid array.

 

BarneyHillman_2-1634207305064.png

BarneyHillman_3-1634207325161.png

The SharePoint List is Called Issue Tracker List.

The Form is called Submit a Ticket.

 

Any help would be greatly appreciated.

Thanks in advance 🙂

 

1 ACCEPTED SOLUTION

Accepted Solutions

@BarneyHillman 

Try moving the create Item outside the apply as well

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

View solution in original post

6 REPLIES 6
Mira_Ghaly
Dual Super User
Dual Super User

@BarneyHillman 

This step needs to be moved outside the Apply to Each

Mira_Ghaly_0-1634207589204.png

 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

Wow thank you for such a fast reply

 

BarneyHillman_0-1634207661059.png

 

you mean like this?

 

I still get this error 😞

 

The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['body/resourceData/responseId']' is of type 'Integer'. The result must be a valid array.

@BarneyHillman 

Try moving the create Item outside the apply as well

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

BarneyHillman_0-1634207984113.png

it now looks like this i will give it  try

 

 

Thank you 

@Mira_Ghaly 

 

It works, is there any way i can give you a rating or something? I'm new to this 

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (5,422)