web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Keep getting error cod...
Power Automate
Suggested Answer

Keep getting error codes (400 or 411) on send http request under microsoft groups in power automate

(0) ShareShare
ReportReport
Posted on by

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.

https://admin.powerplatform.microsoft.com/support/knownissues/5344962

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?

Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,963 Moderator on at
     
    Can you take a look at this and see if it helps.
     

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 468

#2
Haque Profile Picture

Haque 370

#3
Valantis Profile Picture

Valantis 354

Last 30 days Overall leaderboard