{
"statusCode": 400,
"headers": {
"Cache-Control": "no-store, no-cache",
"Pragma": "no-cache",
"Set-Cookie": "ARRAffinity=1a7aff82bc21373b03d8fda86d009014a254fb43661cd4068b45b28f7aa56160;Path=/;HttpOnly;Secure;Domain=sharepointonline-cus.azconn-cus-001.p.azurewebsites.net,ARRAffinitySameSite=1a7aff82bc21373b03d8fda86d009014a254fb43661cd4068b45b28f7aa56160;Path=/;HttpOnly;SameSite=None;Secure;Domain=sharepointonline-cus.azconn-cus-001.p.azurewebsites.net",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"x-ms-request-id": "89ef5ca1-7007-6000-b8c5-c82673e05f24",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "DENY",
"x-ms-tenant-id": "8f3e36ea-8039-4b40-81a7-7dc0599e8645",
"Timing-Allow-Origin": "*",
"x-ms-apihub-cached-response": "true",
"x-ms-apihub-obo": "false",
"Date": "Thu, 24 Oct 2024 04:32:00 GMT",
"Content-Length": "479",
"Content-Type": "application/json",
"Expires": "-1"
},
"body": {
"status": 400,
"message": "The type Microsoft.SharePoint.Comments.CommentEntitySet does not support HTTP DELETE method.\r\nclientRequestId: 3407568d-279c-49d5-8519-bd25a7082dbe\r\nserviceRequestId: 89ef5ca1-7007-6000-b8c5-c82673e05f24",
"source": "https://SPList name/_api/web/lists/getbytitle('CustomerRequests')/items(27)/Comments",
"errors": [
"-1",
"Microsoft.SharePoint.Client.InvalidClientQueryException"
]
}
}
More details:
In my power app there is a Form Screen its 'OnVisible' is set to:
Set(varComments, CustomerRequestsComments.Run("Get", Table1.Selected.ID).response)
Form Screen has a gallery control whose 'Items' property is set to:
Table(ParseJSON(varComments))
Inside gallery control there is a HTML text control whose 'HTMLText' property is set to:
ThisItem.Value.text
and using 'OnSelect' of button control I am posting the comment which is set to:
Set(varComments,CustomerRequestsComments.Run("Post",Table1.Selected.ID,{text_1:txtComment.Value}).response);Reset(txtComment);
I am stuck and any help to rectify this error would be much appreciated. I have attached my flow structure for reference.