Hi,
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:
Hi @JosuOte,
Can you try and use the following body without the metadata? The headers in this example are slightly different.
Headers
{
"Accept": "application/json;odata=nometadata",
"Content-Type": "application/json;odata=nometadata"
}
Body
{
"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,
Josu
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,
Thanks,
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.
User | Count |
---|---|
88 | |
37 | |
26 | |
13 | |
13 |
User | Count |
---|---|
127 | |
54 | |
37 | |
24 | |
21 |