2

I want to capture the output of an action in a variable, in Power Automate. I am using body('action name'), but getting an error:

Flow save failed with code 'InvalidTemplate' and message 'The template validation failed: 'The action(s) 'Create record' referenced by 'inputs' in action are not defined in the template.'.'.

TylerH
  • 20,799
  • 66
  • 75
  • 101
Ishita
  • 109
  • 2
  • 10

2 Answers2

1

According to this link, you can try something like

outputs('action_name')?['body']

When referring to action name, it is important to replace white spaces with underlines. Thus, action named "FILES TO SEND" will be referred to as outputs('FILES_TO_SEND')?['body']

0

Try with the expression outputs('action_name')

Link to documentation: https://learn.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference#outputs

Tivie
  • 18,864
  • 5
  • 58
  • 77