Triggering power automate flow from data action

Hello everyone,

I'm trying to trigger a Power Automate Flow from a Genesys Cloud Data Action (Integration : WebServices Data Action).

This works perfectly well via Postman, But curiously, the body does not seem to be sent when the request is made from Genesys.

To give you more details : In PowerAutomate i've created a flow triggered by http request. The request body must use the following json schema :

{
    "type": "object",
    "properties": {
        "firstname": {
            "type": "string"
        },
        "lastname": {
            "type": "string"
        }
    }
}

and then send a simple notification in MS-Teams with these variables.

If i call this request with Postman, everything works well.
If i call this request from Genesys, it returns a succes, triggers the flow, but without the body sent. I can't see it in my flow's logs.

Here is my request configuration :

{
  "requestUrlTemplate": "urlofmyflowtrigger",
  "requestType": "POST",
  "headers": {
    "Content-Type": "application/json"
  },
  "requestTemplate": "{\n        \"firstname\": \"${input.Firstname}\",\n        \"lastname\": \"${input.Lastname}\"\n}"
}

Do you have any idea about this issue? I can, of course, send other POST requests without any problem.

Thanks by advance,

1 Like

Hello,

I don't have Power Automate and haven't tried it.
But doing a search on google, I read this.
Which reminded me of Custom action fails for unexpected reason.

In other words, can you add this header to your contract and try again?
"Transfer-Encoding": "buffered"

Regards,

Hello Jerome,

Wow, Many thanks! It works indeed with this header

Have a nice day !

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.