cancel
Showing results for 
Search instead for 
Did you mean: 

Flow to create calendar event on users calendar - dynamic

Can we get a flow that creates calendar event on user running the flow? I can build a flow currently where on list item add

an event is created but event only added to my calendar. 

Status: New
Comments
NightKing
Advocate I

@JimmyWork nice workaround with the VacationConnectionAccount and the additional Attendee-Invitation.

But on an Update Event it would fire an E-Mail-Invitation to all Attendees of the current event, which would lead do an immense E-Mail Flooding.

Annoying that the Update Event Action does not have the ability to avoid Notifications to existing Attendees. There we need a flag to send notifications only to new attendees, thats not possible in the moment.

 

Also annoying that the "Get Calender"-Actions will never work for other users, only for mine (the Flow Connection Account) 😉

Omar_El-Anis
Regular Visitor

Strange never received notifications about the replies.

 

I'm a little confused at how exactly you guys are setting up your workflows, by default all powerautomate workflows run in the context of the user and not the flow author which is why my solution works. So unless your using child workflows or running as the list which by default use the context of the workflow publisher I really don't know why it doesn't work for you guys, sorry!

opasyuk
Frequent Visitor

@Omar_El-Anis Exactly! I am also surprised that requests are handled not from the user. In my case I am buidling flows from Power virtual Agent (to have a bot in MS Teams). This flows do not appear in the power automate list. I really can access them through the bot building interface.

When I buiild flow, new flow interface asks me to authorise as a first step. May be this is when it is locked to my identity. 

 

There is this setting. But I am not sure wy current setting does not work. 

opasyuk_0-1631782484905.png

 

Omar_El-Anis
Regular Visitor

@opasyuk in your case it won't work as PVA workflows do not run in the context of the user, you can perform some actions by using a bearer authentication as the logged in user but the workflow will not be running in the context of the user, see the following article:

https://poszytek.eu/en/microsoft-en/office-365-en/pva-en/pva-series-user-context-in-power-virtual-ag...

 

I'd recommend looking into using Graph API instead, can be built using a custom connector or direct via HTTP action if preferred

 

 

animeshnigam
Regular Visitor

Yes, we need this feature, if somewhere the CalendarId can be passed from the Connections page itself. 

rahulgoala
New Member

Thanks @Omar_El-Anis. Saved the day for me! I tried the Get Calendar but did not anticipate the need for the condition to check for the appropriate Calendar Id by name.

M_Planeck
New Member

Hello,

 

same problem here, I started with MS Forms but then changed to a sharepoint list.

The list triggers a flow and should create a calender event. I excaclty tried to use the sceme @Omar_El-Anis also used but it creates the event in my calender whoever edits a list item.

How is it about the sharing or a matter of the plan?

 

@rahulgoalahow did you solve the problem?

 

Mario

Screenshot 2022-03-30 113225.pngScreenshot 2022-03-30 113411.pngScreenshot 2022-03-30 113458.png

 

Omar_El-Anis
Regular Visitor

@M_Planeck what trigger are you using for the flow? It has to be manual like a button in PowerApps or from the context menu in SharePoint list but not an automated trigger. Automated triggers (like run when an item is modified or created) always run under the context of the flow owner and not the user who performed the action. It's fundamental that people understand this difference between how flows run.

 

That email action for example is most likely running from your account and sending the email as if you sent it, correct? Check your sent emails in Outlook and you'll also see it as an email that was sent in there. why? Because the workflow is running as your account and not as the user who made the change. So taking that into consideration it will also mean any changes to Outlook calendars will be done on your account and not the users as you are running the workflow from your user context.  Now you could technically use the modified by field to then lookup the usera calendar but you would also need permission to access their outlook account.

 

Hope that helps explain it a bit 🙂

 

p.s this nothing to do with the plans or licenses