Hi
I have flow that uses get Job Output to get the output from a powershell script run in an automation account. I want to use this output in a variable:
<p>Contact ICT with the details below: </p>
<p><em>@{body('Get_job_output')?['body']}</em></p>
But i get this error:
InvalidTemplate. Unable to process template language expressions in action 'Set_variable' inputs at line '1' and column '52556': 'The template language expression 'body('Get_job_output')?['body']' cannot be evaluated because property 'body' cannot be selected. Property selection is not supported on values of type 'String'.
Any ideas why this is happening?
cheers
Solved! Go to Solution.
The clue is in the error, it is tell you that the output of body('Get_job_output') is a string. You are also selecting the same thing twice, You probably want:
body('Get_job_output')
or
outputs('Get_job_output')?['body']
The clue is in the error, it is tell you that the output of body('Get_job_output') is a string. You are also selecting the same thing twice, You probably want:
body('Get_job_output')
or
outputs('Get_job_output')?['body']
Thanks - well spotted! Amazing that i picked that value from the list of dynamic values the UI gave me!! Flow is great, but one of the most glitchy UIs i've ever used!! 🤣
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
69 | |
27 | |
22 | |
16 | |
13 |
User | Count |
---|---|
132 | |
43 | |
42 | |
34 | |
31 |