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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested Answer

Power Automate "When a HTTP request is received" triggered by a subgrid Smart Button: how to write Request Body JSON Schema in Power Automate?

(0) ShareShare
ReportReport
Posted on by 30

Hi all,
in Power Automate I created a flow triggered by an action: "When a HTTP request is received":

pastedimage1624869608942v2.png

 Request Body JSON Schema:

{
    "type": "object",
    "properties": {
        "id": {
            "type": "string"
        }
    }
}


With Ribbon Workbench I created a Smart Button ("Run Webhook") in a Dynamics 365 form that calls the url trigger of the Power Automate action
When the button is pressed in Dynamics 365, the flow actually starts.

But now I'm trying to implement a new ribbon "Smart Button" ("Run Webhook") in a subgrid.
So how should be the body scheme of the http action request to correctly pass all ids of selected records in subgrid?

I noticed that putting the smart button in the subgrid is already proposed as CrmParameter: "SelectedControlSelectedItemIds" in Ribbon Workbench, so now it remains only to write the request body correctly.

 

Thanks in advance!
Regards,
Stinger

I have the same question (0)
  • Suggested answer
    Charan Raju C R Profile Picture
    7 Moderator on at

    Hi stinger,

    You can try below JSON request to send record Ids in this format: {"RecordIds": ["34c68b36-a8eb-4a38-8b8b-8b0e51e17bdc", "14c68b36-a8eb-4a38-8b8b-8b0e51e17bda"}

    {
        "type": "object",
        "properties": {
            "RecordIds": {
                "type": "array",
                "items": {
                    "type": "string"
                }
            }
        }
    }

    Also you can build this request body by providing actual JSON you send while calling the URL by clicking on "Use sample payload to generate schema"

    JSON.png

  • stinger Profile Picture
    30 on at

    Hi Charan thanks for the reply.

    The request is made by a third party plugin that adds functionality to Ribbon Workbench:

    https://develop1.net/public/post/2019/12/21/smart-buttons-for-the-unified-interface

    This plugin allows you to add a ribbon button (called "Smart Button"), to a form or to a subgrid, so that this button can be the trigger to call a webhook url associated with an HTTP Power Automate action (the scenario that I described earlier).

    Unfortunately:

    - the JS that manages the click of the button and calls the webhook url is minified, so it is not easy to see where and how the request to the webhook URL is made and how the parameters are passed.

    - the plugin website gives an example of how to write the "Request Body JSON Schema" in the case of ribbon button in form, but for the ribbon button in subgrid I have not found any indications.

    Has anyone used a Smart Button in a subgrid to call a power automate "When a HTTP request is received" action?

    How did you write the "Request Body JSON Schema" to pass all the ids of the selected records in the subgrid?

    Thanks in advance!

    Regards,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
FSRon Profile Picture

FSRon 75

#2
James White Profile Picture

James White 25

#3
AT-28040446-0 Profile Picture

AT-28040446-0 20

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans