Skip to main content

Notifications

Community site session details

Community site session details

Session Id : DT7BUMdwn2i91MH6ys64Pf
Power Apps - Building Power Apps
Answered

How to determine an invitee's status (Accepted, Tentative, Decline) to a O365 Calendar invitation?

Like (0) ShareShare
ReportReport
Posted on 20 May 2024 18:25:20 by 87

I want to create a gallery of all required invitees and their response (Accepted, Tentative, Declined) to an Office 365 Calendar invitation.  I'm able to get the invites and other meeting information, but I am unable to figure out how to get their status.

 

I have connected and configured Office365Users and Office365Outlook connectors.

 

From other posts:

 

Get list of calendars: (Note the use if the current APIs CalendarGetTablesV2 and GetEventsCalendarViewV3 - FYI: watch out for the case change in the attributes from previous API versions)

 

Set(MyCalendarID, LookUp(Office365Outlook.CalendarGetTablesV2().value,name = "MyCalendarName").id);
Set(UTCNow,Text(DateAdd(Now(),0,TimeUnit.Minutes),DateTimeFormat.UTC));
Set(UTCNext,Text(DateAdd(Now(),44640,TimeUnit.Minutes),DateTimeFormat.UTC));
Set(MyCalendarValues,Office365Outlook.GetEventsCalendarViewV3(MyCalendarID,UTCNow,UTCNext).value)

 

 

Setup collections for the meeting lists:

 

Sort(MyCalendarValues,start)

ThisItem.subject, (etc) for gallery.

 

 

Setup Collection for Required Users to display in a 2nd gallery:

 

ClearCollect(RequiredAttendance,Split(ThisItem.requiredAttendees,";"))

 

 

Get User's  name to display in the gallery:

 

First(Office365Users.SearchUserV2({searchTerm: ThisItem.Value ,top: 1}).value).DisplayName

 

 

But I can't find (google) how to also display the user's response to the invite (Accepted, Declined or Tentative).

 

As always, thank you for your time.

Alex

Categories:
  • AlexLindberg Profile Picture
    87 on 24 May 2024 at 22:25:42
    Re: How to determine an invitee's status (Accepted, Tentative, Decline) to a O365 Calendar invitation?

    One more quick question - Can you provide the code associated with your dropdown?

     

    In my OnStart I have: 

     

    ClearCollect(CalList, Office365Outlook.CalendarGetTablesV2().value);

     

     

    The Items Items value of the DropDown is set to CalList.

     

    The OnSelect of the DropDown is set to:

     

    Set(MyCalendarID, CalendarDropDown.Selected.id);
    ClearCollect(MyCalendarValues,Office365Outlook.GetEventsCalendarViewV3(MyCalendarID,UTCNow,UTCNext).value); 

     

     

    The gallery uses MyCalendarValues as the data source.

     

    This seems very sluggish and at times, the gallery does not update.  Any suggestions?

     

    As always, thank you for your time.

  • AlexLindberg Profile Picture
    87 on 21 May 2024 at 12:25:54
    Re: How to determine an invitee's status (Accepted, Tentative, Decline) to a O365 Calendar invitation?

    Thank you @v-xiaochen-msft

     

    I ponder why is so difficult to get normal information regarding user status to an event.  I was hoping for a simple API.

  • Verified answer
    v-xiaochen-msft Profile Picture
    on 21 May 2024 at 02:13:00
    Re: How to determine an invitee's status (Accepted, Tentative, Decline) to a O365 Calendar invitation?

    Hi @AlexLindberg ,

     

    Please try this

    vxiaochenmsft_0-1716257523254.png

    Set(var,Office365Outlook.HttpRequest("https://graph.microsoft.com/v1.0/users/"&User().Email&"/calendars/"&Dropdown1.Selected.id&"/events/"&Gallery1.Selected.id,"GET",""))

    vxiaochenmsft_1-1716257545088.png

    ForAll(var.attendees,{status:Text(ThisRecord.status.response),userName:Text(ThisRecord.emailAddress.name)})

    vxiaochenmsft_2-1716257562034.png

    vxiaochenmsft_3-1716257570273.png

     

    Best Regards,

    Wearsky

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
MS.Ragavendar Profile Picture

MS.Ragavendar 32

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 24 Super User 2025 Season 1

#3
WarrenBelz Profile Picture

WarrenBelz 18 Most Valuable Professional

Overall leaderboard
Loading started