cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Microsoft
Microsoft

Using Output from Azure runbook get job output flow

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

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:

32.PNG

33.PNG

 

Best Regards,

Barry

Community Support Team _ Barry
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

2 REPLIES 2
Community Support
Community Support

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:

32.PNG

33.PNG

 

Best Regards,

Barry

Community Support Team _ Barry
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

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:

 

flowscreen.jpg

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (5,938)