I've edited a flow for approval of leave requests.
The part that doesn't work is once approved, it should create an item in a different event list called Staff Calendar. I didn't create this as a list but using the SharePoint apps to create a calendar.
The response i'm getting is 400.
Input
{
"Title": "Steve Test 7",
"EventDate": "2020-07-20T07:30:00Z",
"EndDate": "2020-07-20T07:30:00Z",
"EventType": {
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 1,
"Value": "Holiday"
}
}
Output
{
"status": 400,
"message": "Object must implement IConvertible.\r\nclientRequestId: 2ab90b66-6e98-440f-b9a0-769ffd1c43fe\r\nserviceRequestId: 2ab90b66-6e98-440f-b9a0-769ffd1c43fe"
}
I wasn't sure if this problem was to do with using an events list, you can't select the list on power automate but can put a custom value.