cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
amaurysaldana
Frequent Visitor

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

ExpressionEvaluationFailed. The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@outputs('Start_and_wait_for_an_approval')?['body/responses']' is of type 'Null'. The result must be a valid array.
1 ACCEPTED SOLUTION

Accepted Solutions
v-yiwenxie-msft
Microsoft
Microsoft

Hi @amaurysaldana 

 

The error says that the response of ‘start and wait for an approval’ is empty.

 

Could you show me the screenshot of your flow?

 

Could you please tell me what you want to reference?

Because outputs('Start_and_wait_for_an_approval')?['body/responses'] is a thing like:

[

  {

    "responder": {

      "id": "6e042974-df6b-4da9-a794-4732fd45a90d",

      "displayName": "Kira Xie",

      "email": "kirax@domain.onmicrosoft.com",

      "tenantId": "9e51064f-f6a5-41a2-89a9-9785a9d6c706",

      "userPrincipalName": "kirax@domain.onmicrosoft.com"

    },

    "requestDate": "2021-02-08T05:24:41Z",

    "responseDate": "2021-02-08T05:25:47Z",

    "approverResponse": "Approve"

  }

]

 

If you want to reference the approver’s response, then please use the expression:

items('Apply_to_each_2')?['approverResponse']

 

Best Regards,
Community Support Team _ Kira Xie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yiwenxie-msft
Microsoft
Microsoft

Hi @amaurysaldana 

 

The error says that the response of ‘start and wait for an approval’ is empty.

 

Could you show me the screenshot of your flow?

 

Could you please tell me what you want to reference?

Because outputs('Start_and_wait_for_an_approval')?['body/responses'] is a thing like:

[

  {

    "responder": {

      "id": "6e042974-df6b-4da9-a794-4732fd45a90d",

      "displayName": "Kira Xie",

      "email": "kirax@domain.onmicrosoft.com",

      "tenantId": "9e51064f-f6a5-41a2-89a9-9785a9d6c706",

      "userPrincipalName": "kirax@domain.onmicrosoft.com"

    },

    "requestDate": "2021-02-08T05:24:41Z",

    "responseDate": "2021-02-08T05:25:47Z",

    "approverResponse": "Approve"

  }

]

 

If you want to reference the approver’s response, then please use the expression:

items('Apply_to_each_2')?['approverResponse']

 

Best Regards,
Community Support Team _ Kira Xie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Realmente no logro dar con el punto por el que falla este flujo, por favor verificar si me pueden ayudar.

No se si hay alguna forma de poderles hacer llegar mi flujo empaquetado en un archivo .zip?

 

 

v-yiwenxie-msft
Microsoft
Microsoft

Hi @amaurysaldana 

 

Could you take a screenshot of the detailed steps of your flow with private information covered up?

 

Best Regards,
Community Support Team _ Kira Xie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,192)