cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
globe11123
New Member

Create item in sharepoint event list not working

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. 
 
1 ACCEPTED SOLUTION

Accepted Solutions
globe11123
New Member

Think I've found the problem inserting values into EventType! I've removed this now.

 

Seems to be working fine. 

View solution in original post

1 REPLY 1
globe11123
New Member

Think I've found the problem inserting values into EventType! I've removed this now.

 

Seems to be working fine. 

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (2,953)