web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Office365Outlook Calen...
Power Apps
Unanswered

Office365Outlook Calendar MS Teams Meeting creation

(0) ShareShare
ReportReport
Posted on by 535 Super User 2024 Season 1

I'm working on an app that will be allowing users to schedule a 1 hour meeting with people from a specific pool of people.  A lot of the functionality I'm using is coming from the Meeting screen template.

 

In our organization, whenever you try to schedule a meeting using Outlook, it defaults to the meeting being a Microsoft Teams Meeting and includes the link to join the meeting at the bottom of the meeting request body.

 

How would I include the MS Teams connection info in the meeting request sent using the Office365Outlook Calendar functions?   

Categories:
I have the same question (0)
  • v-xiaochen-msft Profile Picture
    on at

    Hi @zuurg ,

     

    Please try this:
    https://learn.microsoft.com/zh-cn/connectors/teams/#create-a-teams-meeting

     

    Best Regards,

    Wearsky

  • zuurg Profile Picture
    535 Super User 2024 Season 1 on at

    Thank you, that definitely got me pointed in the right direction (once I realized that the documentation isn't 100% accurate as far as what parameter types are expected for subject, start time and end time.

     

    It's mostly working, but I'm having an issue with the way the meeting information is being shown in Outlook.

     

    For a normal calendar entry, it's showing the start & end time in local time:

    zuurg_0-1683736028428.png

     

    For the entries sent using the CreateTeamsMeeting, they're showing up in the right spot on my calendar:

    zuurg_1-1683736363675.png

     

    but when you look at the meeting details, it shows in UTC:

    zuurg_2-1683736490330.png

    Here is the code I'm using for the OnSelect of the IconSendItem1 (from the Meeting Screen template):

    /*sends a meeting invite if necessary fields are filled out (attendees, subject, meeting time selection)*/
    Set(_myCalendarName, LookUp(Office365Outlook.CalendarGetTables().value, DisplayName = "Calendar").Name);
    
    /* Set(_myScheduledMeeting, Office365Outlook.V2CalendarPostItem(_myCalendarName,
     TextMeetingSubject1.Text, Text(DateAdd(DateTimeValue(_selectedMeetingTime.StartTime), -TimeZoneOffset(), TimeUnit.Minutes)),
     Text(DateAdd(DateTimeValue(_selectedMeetingTime.EndTime), -TimeZoneOffset(), TimeUnit.Minutes)),
     {RequiredAttendees:Concat(MyPeople, UserPrincipalName & ";") & _selectedRoom.Address, Body: TextMeetingMessage1.Text, Location: _selectedRoom.Name, Importance: "Normal", ShowAs:"Busy", ResponseRequested: true})); */
    
    Set(_myMeetingResponse, MicrosoftTeams.CreateTeamsMeeting(_myCalendarName,TextMeetingSubject1.Text,{content: TextMeetingMessage1.Text, contentType: "html"},"UTC",{dateTime:_selectedMeetingTime.StartTime},{dateTime:_selectedMeetingTime.EndTime},true,"teamsForBusiness",{requiredAttendees: Concat(MyPeople, UserPrincipalName & ";"),importance:"high",reminderMinutesBeforeStart:15,isReminderOn:true,showAs:"Busy",responseRequested:true})); 
    
     Concurrent(
     Reset(TextMeetingLocation1),
     Reset(TextMeetingSubject1),
     Reset(TextMeetingMessage1),
     Clear(MyPeople),
     Set(_selectedMeetingTime, Blank()),
     Set(_selectedRoomList, Blank()),
     Set(_selectedRoom, Blank()),
     Set(_roomListSelected, false)
    )

    The problem with showing it in UTC is that it is potentially confusing to people if they're looking at the details.  So I'd like to make it look like the first example I provided for Focus Time where it doesn't show a time zone and displays the time in local time.  To further complicate things, our organization spans 2 different time zones.  

     

    Is there a way to do this and provide the function what it needs time-zone wise?

  • v-xiaochen-msft Profile Picture
    on at

    Hi @zuurg ,

     

    I am not the expert of Outlook.

    But I found that it does not display the time zone only if the time zone of the created event is the same as the time zone set by Outlook.

     

    In your formula, you set the time zone to "UTC", so only users with the Outlook time zone set to UTC will not show the time zone and show the local time.

     

    Best Regards,

    Wearsky

  • zuurg Profile Picture
    535 Super User 2024 Season 1 on at

    Thanks, that makes sense.  The problem is that regardless of what time zone the user is in, the Time Zone is still a required parameter for the CreateTeamsMeeting, but there is no clean way of figuring out the current user's timezone.  Kind of seems like the left hand didn't know what the right hand was doing.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard