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

Community site session details

Session Id :
Power Apps - Building Power Apps
Suggested answer

How to display contact lists in the PowerApps search field?

(2) ShareShare
ReportReport
Posted on by 27
Hello, everyone,
 
I’d like to know if it’s possible to integrate contact lists into the email search field in PowerApps.
 
I’ve attached an image to illustrate what these contact lists would look like. The idea is for the lists created in Outlook to appear in the email search field within PowerApps, making it easier to find them when searching. This would make my work much more efficient, as instead of searching and adding each email individually, I could add all recipients from a list with just one click.
 
Does anyone know if this is possible? If so, how can I set up this functionality?
 
 
 
Thank you for your help!
 
I have the same question (0)
  • WarrenBelz Profile Picture
    150,751 Most Valuable Professional on at
    How to display contact lists in the PowerApps search field?
    You need a Capital C in Contacts, but that is the English name - it has to be the name of your folder, which I suspect is something else in your language. Your current code is searching your tenant's users, not your contacts.
     
    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    LinkedIn   
  • CU29101605-1 Profile Picture
    27 on at
    How to display contact lists in the PowerApps search field?
     
    Hello,
     
    Following your suggestion, I replaced the previous formula with the following:
     
    Office365Outlook.ContactGetItemsV2("contacts").value
     
    However, after making this change, the field displays the following error:
     
    Office3650utlook.ContactGetItemsV2
    {
      "error": {
        "code": "ErrorInvalidIdMalformed",
        "message": "Id is malformed."
      }
    }
     
    The current formula, which is working but does not return the contact lists I created in Outlook, is:
     
    If(!IsBlank(Trim(EmailCc.Text)), 
        'Office365Users'.SearchUser(
            { searchTerm: Trim(EmailCc.Text), top: 15 }
        )
    )
    Could you help me understand the reason for this error and how to correct the formula to properly retrieve the contacts created in Outlook?
  • WarrenBelz Profile Picture
    150,751 Most Valuable Professional on at
    How to display contact lists in the PowerApps search field?
    Can you please post all of that in Text - the code I posted works perfectly here in a Gallery Items. Also what is the result of your code (error or incorrect/no data ?)
  • CU29101605-1 Profile Picture
    27 on at
    How to display contact lists in the PowerApps search field?
    Hello, Warren Belz how are you? I apologize for the delay in responding; I had some personal setbacks.
     
    I would like to thank you in advance for your attention in checking the proposed solution. However, I must inform you that it did not work. I am still unable to bring the contact lists into the search field.
     
    Attached is how the field is currently configured. This functionality is essential for me because I send a considerable volume of emails, and having the contact list integrated would save me time by avoiding the need to type each email individually.
     
    Thank you again for your assistance, and I look forward to a possible solution.
     
  • WarrenBelz Profile Picture
    150,751 Most Valuable Professional on at
    How to display contact lists in the PowerApps search field?
    @CU29101605-1​​​​​​​
    A quick follow-up to see if you received the answer you were looking for or if you need further assistance.

    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    Buy me a coffee
  • WarrenBelz Profile Picture
    150,751 Most Valuable Professional on at
    How to display contact lists in the PowerApps search field?
    Put this in the Items of a Combo Box
    Office365Outlook.ContactGetItemsV2("Contacts").value
    and you will then need to set the field elements (displayName, mail) etc you want to display.
    If the user's contacts are in another folder other than the default, you will need to use that folder name.

    Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.
    MVP (Business Applications)    Visit my blog Practical Power Apps    Buy me a coffee

  • CU29101605-1 Profile Picture
    27 on at
    How to display contact lists in the PowerApps search field?
    Apologies, I still haven't fully understood. I am a beginner in PowerApps and already use the Office 365 connector, as my app includes the email screen model provided by PowerApps. I would like to know if using the Microsoft Graph API is truly essential to retrieve distribution lists. Is there an alternative to access these lists directly through formulas in PowerApps? If possible, could you provide a detailed solution or examples with screenshots or specific explanations? Thank you in advance!
     
     
  • Suggested answer
    Garima_PowerPlatform Profile Picture
    170 on at
    How to display contact lists in the PowerApps search field?
    Hi,

    Yes, it is possible to integrate contact lists from Outlook into PowerApps to streamline the process of adding multiple recipients in the email search field.
     
    • Access Contact Lists from Outlook:

      • Use Microsoft Graph API to fetch contact lists or distribution groups stored in Outlook.
      • Alternatively, use the Office 365 Users Connector in PowerApps to retrieve personal contacts.
    • Display Contact Lists in PowerApps:

      • Populate a gallery or dropdown in PowerApps with the retrieved contact lists.
    • Enable Selection and Adding of Recipients:

      • Allow users to select a contact list, which will dynamically populate the email addresses in the recipient field.
    • Pass the Recipient List to an Email Function:

      • Use PowerApps integration with Power Automate to send emails to the selected recipients.


        Please click Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it a Like.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Tom Macfarlan – Community Spotlight

We are honored to recognize Tom Macfarlan as our Community Spotlight for October…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 998 Most Valuable Professional

#2
developerAJ Profile Picture

developerAJ 426

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 257 Super User 2025 Season 2

Last 30 days Overall leaderboard