cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
yoshihirok Memorable Member
Memorable Member

How can I use the values in "Request" Trigger's JSON in next actions ?

I want to use the value in "Request" Trigger's JSON from Microsoft Operations Management Suite's Alert - webhook.

 

My Microsoft Operations Management Suite's alert send the alert detail information in JSON body by webhook.

and My actions use the alert detail for send notificaiton, email with approval, create tasks beyond the alert's value.

 

Regards,

Yoshihiro Kawabata

 

2 ACCEPTED SOLUTIONS

Accepted Solutions
Microsoft
Microsoft

Re: How can I use the values in "Request" Trigger's JSON in next actions ?

We are currently working on webhook scenario which should be available in the next couple weeks 

@Sunay for more info about the details.

 

View solution in original post

Power Automate
Power Automate

Re: How can I use the values in "Request" Trigger's JSON in next actions ?

You can use JSON schema to define the incoming request body. http://jsonschema.net/#/ is a useful utility to generate JSON schema.

Once defined the tokens will show up in subsequent steps automatically.

 

Thanks,

Sunay

View solution in original post

7 REPLIES 7
Microsoft
Microsoft

Re: How can I use the values in "Request" Trigger's JSON in next actions ?

We are currently working on webhook scenario which should be available in the next couple weeks 

@Sunay for more info about the details.

 

View solution in original post

Highlighted
Microsoft
Microsoft

Re: How can I use the values in "Request" Trigger's JSON in next actions ?

We are currently working on webhook scenario which should be available in the next couple weeks 

@Sunayfor more info about the details.

 

yoshihirok Memorable Member
Memorable Member

Re: How can I use the values in "Request" Trigger's JSON in next actions ?

Thank you, @kkurni

 

I'm looking for the webhook scenario.

 

Regards

Yoshihiro Kawabata

Power Automate
Power Automate

Re: How can I use the values in "Request" Trigger's JSON in next actions ?

You can use JSON schema to define the incoming request body. http://jsonschema.net/#/ is a useful utility to generate JSON schema.

Once defined the tokens will show up in subsequent steps automatically.

 

Thanks,

Sunay

View solution in original post

yoshihirok Memorable Member
Memorable Member

Re: How can I use the values in "Request" Trigger's JSON in next actions ?

Thank you, @Sunay

 

I will start to learn http://jsonschema.net/#,

and try to use in Trigger 'Request' from some webhooks,

include Microsoft Operations Management Suite's alert webhook.

 

I hope JSON schema sample of Microsoft Operations Management Suite alert for Trigger 'Request'.

I want to share Trigger 'Request' webhook scenario to our no-developer friends/customers/partners.

Just like: "Hey, You can use Microsoft Flow to operate alert without any developer".  

 

Regards,

Yoshihiro Kawabata

yoshihirok Memorable Member
Memorable Member

Re: How can I use the values in "Request" Trigger's JSON in next actions ?

Thank you, @Sunay too.

 

I can do Microsoft Flow from Microsoft Operations Management Suite' alert.

 

-- Create URL for inspect Webhook JSON value by Requestb.in.

 

Step 1. Open http://requestb.in/

Step 2. Create a RequestBin by http://requestb.in/

Step 3. Copy the BIN URL's url

 

-- Send alert JSON request to Requestb.in from Microsoft Operations Management Suite.

 

Step 4. Open Microsoft Operations Management Suite.

Step 5. Open ""Overview > Settings Edit > Alert Rule"

Step 6. Paste BIN URL string to "Webhook url".

Step 7. Check off - "Include custom JSON payload".

Step 8. Select the button "Test webhook".

 

-- Copy JSON value by Requestb.in

 

Step 9. Open BIN URL's inspect page. Inspect page url is BIN URL with "?inspect".

Step 10. Copy "Raw Body" value from Request BIN's results.

 

-- Create JSON Schema by jsonschema.net

 

Step 11. Open http://jsonschema.net

Step 12. Paste JSON value to "JSON"

Step 13. Select the button "Generate Schema"

Step 14. Copy "Schema" string.

 

-- Create Flow

 

Step 15. Open Microsoft Flow.

Step 16. Create new flow.

Step 17. Select Trigger "Request".

Step 18. Paste "Schema" value to "Request Body JSON Schema"

Step 19. Add New step "Office 365 Outlook - Send an email".

Step 20. Build values in Action "Send an email" by using JSON values.

Step 21. Save flow.

Step 22. Copy "HTTP POST to this URL" value in Trigger "Request".

 

-- Test alert webhook from Microsoft Operations Management Suite.

 

Step 19. Open Open Microsoft Operations Management Suite's alert page.

Step 20. Paste "HTTP POST to this URL" value to "Webhook URL".

Step 21. Select "Test webhook".

 

-- Check Microsoft Flow activity.

 

Step 22. Open Microsoft Flow.

Step 23. Check Activity of the flow.

 

-- Check email.

 

Step 24. Open email client.

Step 25. Check email.

 

Regard.

Yoshihiro Kawabata

 

Microsoft
Microsoft

Re: How can I use the values in "Request" Trigger's JSON in next actions ?

Thanks @yoshihirokfor sharing

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (7,437)