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

Flow open a specific calendar and set or cancel meetings



I'm new here, but wasn't able to find an answer for my problem, so hopefully somebody can help me.

I have created an bot for microsoft teams with power virtual agents. This bot works fine and people can talk with it in ms teams and give the bot some information about dates. For example you could tell the bot a start-date and an end-date for days you aren't able to work.

With the authentification in teams the bot also knows the username and the id of the person, who is talking with it.

Now I like to create an automated flow, which the bot should trigger with the infos like username, userid, startdate and enddate, which should do the following steps:

1. open/find the specific user's calendar in outlook/teams (I'm pretty sure both use the same calendar)

2. create for each day in the range of startdate and enddate a (full-day) entry, which says "unavailable"

3. for each conflict with another meeting in entries of Step 2. cancel the meeting (for the user with username)

4. post a summary in a specific ms teams channel



I got Step 4 already working fine.

Step 2, I think I've figured out aswell, but with regard to my following problem at Step 1:

There is the template flow: Get calendar, which returns (all?) available calendars. And there is another flow template for creating entries in a specific calendar(Step 2 with option full-day entry), which needs the calendar ID to work.

My big problem is, how am I supposed to get the calendar ID of a specific user?

Is there a way to get the specific calendarID for a username or a userid?

And then what can I do about Step 3?


Thank you a lot for your help.

greets Vulnin



Helpful resources

Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Users online (63,445)