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 / How to determine an in...
Power Apps
Unanswered

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

(0) ShareShare
ReportReport
Posted on 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:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    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

  • AlexLindberg Profile Picture
    87 on at

    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.

  • AlexLindberg Profile Picture
    87 on at

    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.

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard