I am trying to use power automate to create a flow that updates a group calendar when a new sharepoint list item is created. I've managed to make it so that when a new item is created, a new event is created in the calendar. I used the 'Create a group event (v2)' action to do this. The last step I want to do is make it so that the event in the calendar changes categories to make it a different colour. Unfortunately, the parameters in the 'Create a group event (v2)' action do not support this. So instead, I was trying to use the 'send http request v2' under office 365 groups to do this but I keep running into the error code '411 LengthRequiered' even though I have text in the body. I found a link that says I can do this but no matter what I try it doesn't work.
https://learn.microsoft.com/en-us/graph/api/event-update?view=graph-rest-1.0&tabs=http
I've tried adding in a custom header that specifies the content length but that didn't work either.
I also found this link which seems to maybe say that this is an issue that microsoft is working to resolve right now but I'm not sure if it means this directly. Also, this issue was from several weeks ago and it says it should've been fixed by eod from the day it was posted.
Here are the last two codes I was using (i removed my calendar id for privacy):
{ "type": "OpenApiConnection", "inputs": { "parameters": { "Uri": "https://graph.microsoft.com/v1.0/groups/(group id)/events/@{outputs('FilmingEvent')?['body/id']}", "Method": "PATCH", "CustomHeader1": "Content-Length: @{outputs('clfilming')}", "Body": "{"categories":["Red category"]}", "ContentType": "application/json" }, "host": { "apiId": "/providers/Microsoft.PowerApps/apis/shared_office365groups", "connection": "shared_office365groups", "operationId": "HttpRequestV2" } }, "runAfter": { "FilmingEvent": [ "Succeeded" ] }, "metadata": { "operationMetadataId": "0a13ae12-3700-478e-801f-c417cca31be2" } }
Can anyone help me understand if this is even something I can do? Is it broken right now? Is there a way for me to know when it will be fixed?