Sep 07 2018 02:44 AM
Hey
Is there someone who can explain how i setup flow in a way that i get todays events from a sharepoint calendar.
I want to create a post in Teams that contain today´s events from a sharepoint calendar.
Is this possible?
Sep 07 2018 04:09 AM
You can do this using the Recurrence trigger. The add the actions to get the Items that you want from your SharePoint list and post the message to Teams.
Sep 07 2018 04:12 AM
Sep 07 2018 05:16 AM
Hi @Oskar Kuus see how you get on with those screenshots as a basic guide. You'll need to do some formatting around the post and make the query dynamic, but it should get you pretty much there.
Sep 07 2018 05:37 AM
Sep 09 2018 10:54 AM
Hi Oskar, sorry it's taken me a couple of days to get back to you. Were you able to solve this?
Just in case, yes I hard coded the dates into the query, however you will be able to use expressions instead to pull out and format the date as required. See my screenshot as to where I've used it. The expression looks like this:
formatDateTime(utcNow(),'yyyy-MM-dd')
Sep 09 2018 11:40 AM
Hi
Thanks for your reply.
No so far i have not solved this.
I tried this setup and got the following error
{
"status": 400,
"message": "Kolumnen starttid finns inte. Den kan ha tagits bort av en annan användare.\r\nclientRequestId: 0c5623f7-909f-488c-bb89-ef684d79683f\r\nserviceRequestId: ab1c8d9e-4023-0000-202a-36848dfe84d1"
}
screenshot: http://prntscr.com/ksf2k0
The error is in swedish, but translated it says "column starttid does not exist. It can have been removed by another user....
But if i go to my calendar
I clearly see the column is there and it got the correct name.
screenshot: http://prntscr.com/ksf3cz
Sep 09 2018 12:43 PM
Sep 09 2018 01:00 PM
Hi @Oskar Kuus, just to add some additional clarity to @Alan Marshall I've taken a screenshot. The biggest thing that catches people out is the difference between the SharePoint internal name and the display name. I've attached a screenshot that will show where you can check that.
Sep 10 2018 01:50 AM
Thank you very much. This made everything work perfectly.
Sep 12 2018 03:50 AM
Sep 16 2018 01:12 PM
Hi @Oskar Kuus sorry for not replying before now.
There are a long list of expressions that you can combine, just like you would in Excel. To figure out what 5 days are from today, you can use something like this:
addDays(utcNow(),5,'yyyy-MM-dd')