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 / Outlook connector dist...
Power Apps
Unanswered

Outlook connector distribution list selection

(0) ShareShare
ReportReport
Posted on by 43

Hi,

I have been taking a look at the template for a room booking system (in Power Apps > Create > Book a Room). This uses the GetRoomLists function of the Office365Outlook connector. This collects the room lists (which are really just a type of distribution list) with this command:

 

 

ClearCollect(RoomsLists, Office365.GetRoomLists().value);

 

 

 Without resorting to making a custom connector to MS Graph, is there a way to get a different set of distribution lists - e.g. ones starting with "Vehicle".

The reason I'm asking is I'd like to be able to book vehicles (which we have as resource mailboxes in Exchange Online) via a Power App.

 

Thanks!

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

    Hi @baarsd ,

     

    If my understanding is right, you want to filter the list that start with "Vehicle", right?

    The office365 has been deprecated, please change to use Office365 Office connector. Then, please try with this code:

    ClearCollect(FilteredRoomsLists, Filter(Office365Outlook.GetRoomListsV2().value,StartsWith("Vehicle",name)));

    Hope this helps.

    Sik

     

  • baarsd Profile Picture
    43 on at

    Hi @v-siky-msft 

    so under Data Sources, when I expand connectors the only Office365 ones I see are

    - Office 365 Groups
    - Office 365 Outlook
    - Office 365 Users

     

    I've added the "Office 365 Outlook" connector - which is https://docs.microsoft.com/en-us/connectors/office365connector/. It doesn't appear to be deprecated?


    I inserted a gallery with its Items property set to

     

    Filter(
     Office365Outlook.GetRoomListsV2().value,
     StartsWith(name,"Vehicle")
    )

     

    Which returns 0 results - which I sort of expected given the distribution lists I'm looking for are not rooms. If I change that to

     

    Filter(
     Office365Outlook.GetRoomListsV2().value,
     StartsWith(name,"Room")
    )

     

    It works, because our Room distribution lists all start with "Room".

    So your filter works - but only for Room lists, and not for standard distribution lists (which our vehicles use, they are not rooms). Is it not possible to search for normal distribution lists?

    Thanks for your help!
    Dylan

     

  • Verified answer
    v-siky-msft Profile Picture
    on at

    Hi @baarsd ,

     

    What I mean is that the Office365 connector has been deprecated and it is subdivided into three parts- Office 365 Groups  - Office 365 Outlook - Office 365 Users.

     

    The Office365Outlook.GetRoomListsV2() function can only get all rooms in tenant resource. If you want to get all distribution list, I am afraid it is not supported in PowerApps currently.

    The only way is to create a custom connector based on Microsoft Graph API to implement your needs.

    Please take a reference on this blog: https://gotoguy.blog/2017/12/17/access-microsoft-graph-api-using-custom-connector-in-powerapps-and-flows/ 

    Sik

     

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard