I am trying to see how to pass information from an Azure automation runbook to flow. The runbook has an object variable that has many properties to it. I have tried passing this to a Flow variable of object type. However, I dont see how you access properties of the object.
For example, $object.subscriptionName in the output is an azure sub name. How do I access that part of the object in flow?
Solved! Go to Solution.
Hi @MS_Sol,
Could you share a screenshot of your Flow configuration?
Could you share the specific content of the object variable output?
I am wondering what type of format it is presented in.
Flow provides action-Parse JSON that can parse JSON objects.
Just need a paste a sample JSON payload to parse json and get the property value.
Image reference:
Best Regards,
Barry
Hi @MS_Sol,
Could you share a screenshot of your Flow configuration?
Could you share the specific content of the object variable output?
I am wondering what type of format it is presented in.
Flow provides action-Parse JSON that can parse JSON objects.
Just need a paste a sample JSON payload to parse json and get the property value.
Image reference:
Best Regards,
Barry
I am not choosing the format, its a Flow action, so doesnt it determine what it formats the object as? I would imagine if it uses the object type that the runbook uses, it would be a PSobject. Sounds like maybe you are saying I need to change the format to JSON in the runbook.
What about the object variable type you can set in initialize and set variable in Flow? How would you access the properties of that variable?
Here is my flow:
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
45 | |
42 | |
37 | |
36 | |
23 |
User | Count |
---|---|
44 | |
38 | |
30 | |
28 | |
26 |