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 II
Dual Super User II

@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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,903)