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