Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Creating all day event in sharepoint



Im trying to create an all day event after an item is created in sharepoint with the "send a request http to sharepoint" block but no event is getting created. I've tested a couple of different things found on the forum but none seemed to help me. The variable that is being declared before the block takes the date of a created item and adds 'X' days to that date. The expression works, I've been using it in another flow. The expression looks like this:


addDays(triggerOutputs()?['body/Nueva_x0020_columna1'], 2, 'yyyy-MM-dd')
Where 2 is the amount of days added to the inital date.
I'll leave an image of how the flow looks.
http request.PNG
If more information is needed, feel free to ask,
Thanks in advance,
Super User
Super User

Hi @JosuOte,


Can you try and use the following body without the metadata? The headers in this example are slightly different.



  "Accept": "application/json;odata=nometadata",
  "Content-Type": "application/json;odata=nometadata"



"Title": "All Day Event Test",
"EventDate": "@{variables('Date')}",
"fAllDayEvent": true



Hi @Expiscornovus,


Thank you very much for the response,


I tried what you said and it doesnt seem to work in my side, I can show you the entire flow. The block on the left just creates an event on the calendar using a "date" field in a list and adds "X" days(im using this to know that the flow has run and to compare).



But as you can see in the next image, the event is created by default at 1:00(with the left block).



If there is anything else you would try, please let me know.


Thank you very much in advance,




Super User
Super User

Hi @JosuOte,


For your variable I would use the following expression. I don't think you will need formatting.

addDays(triggerOutputs()?['body/Nuevacolumn1'], 2)


Btw, can you also share a screenshot of your flow run? Specifically of the Send an HTTP Request to SharePoint action? I am interested to see what the EventDate value is, the flow is trying to input.




Hi @Expiscornovus,




I will be using that expression now. Here you have the screenshot. I noticed there is no time value nor in the flow run nor the actual column in the list.

flow run.PNG

Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (1,938)