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

Community site session details

Session Id : 0E5S23YAvkDWjYINaWAhHH
Power Automate - Building Flows
Unanswered

How to pass parameter to runbook using HTTP Post?

Like (0) ShareShare
ReportReport
Posted on 23 Feb 2023 16:15:57 by 105

I was having problems passing some variables in a powershell script/runbook/webhook via a post http call so I thought I would find a much simpler script and try, but its still the same so I’m obviously doing something wrong. Here is the powershell script/runbook which I’m calling via a webook:

 

 

 

 

 

 

 

Param
(
 [Parameter (Mandatory= $true)]
 [String] $Name
)

## Hello 
write "Hello $Name"

 

 

 

 

 

 

 

This is my basic flow

 

Pic1.png

I just cant seem to wrap my head around the formatting that is required and I've tried to many variations that I'm starting to get lost. Here are a few other screenshots that might be useful:

Flow successfully completed.Flow successfully completed.

 

Pic3.png

Pic4.png

Since the script has " [Parameter (Mandatory= $true)] [String] $Name" it prompts you to enter a:

"default value which would be used if no specific value is entered instead".

during the creation of the Webhook, I tried removing this as well but then it just says "Hello" and still ignores any value I put in my PA flow.

 

I must be doing something so stupid but if I can get this simple example working I can implement the same formatting over to my more complicated (well complicated for me) project and continue working away.

 

Thanks for any help or advice.

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete