Hey everyone,
I am running into a very odd issue in regards to automating Retention Labels in a flow.
I have tried two approaches:
1) Utilizing a M365 Compliance "Apply Label on the Item" action which regardless of the formatting, always seems to result in a "The Response is not in a JSON Format" - not sure how to alleviate this or how to work around this
The output from the body reads as:
{
"error": {
"code": 403,
"source": "flow-apim-unitedstates-002-westus-01.azure-apim.net",
"clientRequestId": "51e5bb68-f94c-4026-ab82-b063d3285353",
"message": "The response is not in a JSON format.",
"innerError": "Cannot read server response."
}
}
2) Using the usual "Send HTTP Request to Sharepoint" with the /setComplianceTag() method which leads to multiple retries on the action due to a "Bad Gateway" - this one is particularly confusing as I have a separate but similar action right before (not with the /setComplianceTag()) that runs fine without issues.
Any form of help or guidance would be greatly appreciated - TIA 🙂