cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate I
Advocate I

Flow receiving variable from azure automation

Hello,

 

I managed to created flow that passes variables ( from email or sharepoint ) to azure automation runbooks.

 

Now, I'd like to receive variables from those runbooks back to flow .

 

How is this acheivable ?

 

Thanks,

David

 

10 REPLIES 10
Highlighted
Community Support
Community Support

Re: Flow receiving variable from azure automation

Hi @  DSM,

 

Could you please share a screenshot of the configuration of your flow?

 

Do you want to receive variables from runbooks back to flow after passes variables to azure automation runbooks in your flow?

 

Please share more details so we could provide a proper workaround for you

 

 

Regards,
Alice Zhang

Highlighted
Advocate I
Advocate I

Re: Flow receiving variable from azure automation

Hello Alice,

 

Yes , I do want to receive variables from runbooks back to flow after passing variables to the same azure automation runbook.

 

In this example , the variables ( name and days ) are taken from a sharepoint list, to put a user on Litigation Hold.

 

f1.PNG

 

Flow sends those 2 variables to the runbook and put the user on Litigation Hold 

 

f2.PNG

 

It works very well, but I need to have some kind of confirmation that the command ran successfully, and return back to sharepoint. An output of "get-mailbox" would be great but I dont know how to return it back to Flow.

 

Thanks for you help,

David

 

Highlighted
Advocate I
Advocate I

Re: Flow receiving variable from azure automation

Hello Alice 

 

Waiting for your valuable input....

 

-David

Highlighted
Administrator
Administrator

Re: Flow receiving variable from azure automation

Hey, @v-yuazh-msft!

 

@DSM is in further need of assistance on this issue. Please help this user out if you are able to solve thier problem!

 

Thanks!

 

Gabriel

Flow Community Manager

-Gabriel
Microsoft Power Automate Community Manager
Are YOU a member of your local Power Automate User Group?
Fill out This Form to claim your Community User Group Member Badge!
Highlighted
Frequent Visitor

Re: Flow receiving variable from azure automation

Hi,

 

I am trying to do the same thing - Any chance , Did you found solution.?

Highlighted
Frequent Visitor

Re: Flow receiving variable from azure automation

Hi,

 

I found a solution of doing it.

You can do it by passing a variable and then compose a variable. Then generating the variable output as string(output) and passing it as Automation Job ID.

Let me know, if you need screenshot.

Highlighted
New Member

Re: Flow receiving variable from azure automation

@abbas_sayyed - Can you please provide a screenshot? I am also trying to pass output from an Azure Automation runbook back into flow. For example, users create a list item in SharePoint, using that data, I input into Azure Automation Runbok to create a work item in Azure DevOps. I then want to write the work item ID created in the runbook back to the SharePoint list item. How are you passing something as Automation Job Id?

Highlighted
Frequent Visitor

Re: Flow receiving variable from azure automation

You will have to use hybrid worker group in Azure Automation , then pass the variable as Webhook in runbook.
New Member

Re: Flow receiving variable from azure automation

Thanks @abbas_sayyed.  I actually found what I was looking for. In Flow, Azure Automation has a task called Get Outputs which I didn't see. I was exepcting the output from the Create Job task. So I added another task after Create Job for Get Output which then passes the output as the "Content" dynamic content. All good!

Highlighted
Regular Visitor

Re: Flow receiving variable from azure automation

Could you please send the screen shot for receiving variable from azure automation. And also share the screen shot for azure automation output.

Thanks & Regards

Jacob Robinson

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (6,562)