Hello,
I am trying send an http request to Sharepoint calendar to update event by using flow like this:


This is a body:
{
"formValues":
[
{"FieldName": "EventDate", "FieldValue": "5/10/2020 0:00 AM"},
{"FieldName": "EndDate", "FieldValue": "5/10/2020 0:00 AM"},
{"FieldName": "fAllDayEvent", "FieldValue": "True"}
],
"bNewDocumentUpdate": true
}
This is a response:
{
"d": {
"ValidateUpdateListItem": {
"__metadata": {
"type": "Collection(SP.ListItemFormUpdateValue)"
},
"results": [
{
"ErrorMessage": "Enter a date and time like this: 2/23/2012 2:25 PM",
"FieldName": "EventDate",
"FieldValue": "5/10/2020 0:00 AM",
"HasException": true,
"ItemId": 34
},
{
"ErrorMessage": "Enter a date and time like this: 2/23/2012 2:25 PM",
"FieldName": "EndDate",
"FieldValue": "5/10/2020 0:00 AM",
"HasException": true,
"ItemId": 34
},
{
"ErrorMessage": null,
"FieldName": "fAllDayEvent",
"FieldValue": "True",
"HasException": false,
"ItemId": 34
}
]
}
}
}
I was formatted datetime by using the formula:
formatDateTime( if(empty(triggerBody()?['XXX']),triggerBody()?['YYY'],triggerBody()?['ZZZ']),'M/d/yyyy H:mm tt')
Also I was trying insert there for example: 'M/d/yyyy H:m tt', 'MM/dd/yyyy HH:mm tt', but nothing is work, always the same exception. Does somebody have any ideas what can also I try ?