I never had an eror like this so I am hoping someboday has a hint regarding this.
I call an HTTP triggered Azure Logic App with javascript by using the XrmQuery.SendRequest() method like this:
XrmQuery.sendRequest("POST", url, JSON.stringify(queryPayload),
function (result) {
showAlertDialog("blabla");
},
function (error) {
console.log("Error", error);
showAlertDialog("blablabla" + error);
});
This script is executed within an Dynamics 365 environment.
the url of the logic app is as follows:
The error I get is the following:
Error: {"error":{"code":"0x8006088a","message":"The URI 'https://ORGANIZATION_XY.crm4.dynamics.com/aaaa/workflows/00000000000000000013ce0e9c1c4112/triggers/manual/paths/invoke?api-version=2016-10-01&sp=/triggers/manual/run&sv=1.0&sig=wzedGSO9vs5pfcDQ9WP0qdc5UBGTU2b-kqbWO8x051E' is not valid because it is not based on 'https://ORGANIZATION_XY.crm4.dynamics.com/api/data/v8.0/'."}}
When I call the LogicApp via Postman it works fine. As soon I execute the js code which calls the logic app within Dynamics I get this error.
Anybody knows what this error means?
Any help is highly appreciated.