Hello there! I've created a custom connector that sends a https request (post) using the Power BI Embedded api documented in here: https://docs.microsoft.com/pt-br/rest/api/power-bi-embedded/
When I test the connector while editing it, everything works fine and I get a 202 response, successfully suspending or resuming my capacity. I tried to build a flow to suspend (and one to resume) my capacity in a daily frequency using my custom connector and when I test it I get an error response "404, resource not found", causing the flow to stop at this point - however, when I check my embedded resource, the flow DOES SUSPEND/RESUME as supposed.
What am I missing here? My flow consists in calling the custom connector action after checking today's weekday (suspends the capacity between 10 pm and 4 am and on the weekend) and sending me an email (which never occurs, since it always crashes).
These are the inputs:
{
"host": {
"connectionReferenceName": "shared_pbiembeddedconnector-<some-id>",
"operationId": "ControleCE"
},
"parameters": {
"subscriptionId": mySubID,
"resourceGroupName": myResourceGroupName,
"dedicatedCapacityName": myCapacityName,
"action": "suspend",
"api-version": "2021-01-01"
}
}
And these are the outputs:
Body:
{
"statusCode": 404,
"message": "Resource not found"
}
Header:
{
"Access-Control-Allow-Methods": "GET, PUT, PATCH, DELETE, POST",
"Access-Control-Allow-Origin": "*",
"Access-Control-Max-Age": "3600",
"Access-Control-Expose-Headers": "*",
"Date": "Fri, 29 Jul 2022 16:31:05 GMT",
"Content-Length": "54",
"Content-Type": "application/json"
}