ERROR:
The execution of template action 'Apply_to_each_photo' failed: the result of the evaluation of 'foreach' expression '@json(outputs('Get_response_details_')?['body/r9d60b0ac0ec547ba82cca2a8bd880bbd'])' is of type 'Null'. The result must be a valid array.
json(outputs('Get_response_details_')?['body/r9d60b0ac0ec547ba82cca2a8bd880bbd'])
The Power Automate works fine if I add pictures in the form, if I don't add any I get this error, can you help this beginner get started?
@ManishSolankiThanks for the solution, this works, already learned something.
Hi @LarsHouben
Pls try below expression:
if(empty(outputs('Get_response_details_')?['body/r9d60b0ac0ec547ba82cca2a8bd880bbd']),json(string('[]')),json(outputs('Get_response_details_')?['body/r9d60b0ac0ec547ba82cca2a8bd880bbd']))
If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.