web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Passing a JSON value t...
Power Automate
Answered

Passing a JSON value to an Azure Run Book

(0) ShareShare
ReportReport
Posted on by 12
Hello,
I'm experimenting with flow to post a JSON input to an Azure Run Book that I want to get a mailbox for me.

I got the flow to work and pass on the information. The information I pass on looks like this:
{
"Values":
{
"request": "Get-mailbox",
"user": " test@test.com"
}
}

The Input reaches the Azure Run Book and I got the output to work, yet I can't find a way to bind the input to a variable and use it in a Get-Mailbox command.

my code for now looks like this:

Param (
[string] $Request,
)

Write-Output -InputObject "test", $Request

I get the output back into my flow and send it to my mail adres yet the Output is empty except for the "test" part.

Any help would be greatly appriciates
Categories:
  • v-yuazh-msft Profile Picture
    Microsoft Employee on at

    Hi @FlowSenpai,

     

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

    Could you please explain more details about your requirement so we would try to provide a proper workaround for you.

     

    Best regards,

    Alice

  • Verified answer
    FlowSenpai Profile Picture
    12 on at

    I managed to find the solution.
    The way I passed on the JSON data was incorrect. Changing it to

    {

    "request": "Get-mailbox",

    "user": " test@test.com"

    }

    Was the solution

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 132

Last 30 days Overall leaderboard