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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Office365Outlook.Conta...
Power Apps
Answered

Office365Outlook.ContactGetTablesV2()

(0) ShareShare
ReportReport
Posted on by 409

I am struggling to get Office365Outlook data connector working.  I can get the Office 365 Users connector working, but when I to source, for example, ContactGetTablesV2(), then the Primary Text Data Fields are not accessible.

 

Any ideas?

 

Outlook.PNG

 

 

 
Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @ghdunn 

    You can do this by putting this code in the Items property of the ComboBox instead

    Office365Outlook.ContactGetTablesV2().value

     

    How did I know this?  Office365Outlook.ContactGetTablesV2() returns a Collection.  When troubleshooting collections it is often helpful to see what the data structure looks like.  To do this I stored Office365Outlook.ContactGetTablesV2() in a Collection, then I wentto the View tab on the top menu of PowerApps Studio and clicked on Collections.  From the image below we can tell we need to add ".value" to expand the table.

     

    power.PNG

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • ghdunn Profile Picture
    409 on at

    thanks @mdevaney 

     

    that moves me forwards, but not quite to where I thought I would be.

     

    I am trying to bring back a list of contacts.

     

    If I use Office365Outlook.ContactGetItemsV2("Contacts").value

     

    then I get to see the following table...how do I access fields in that table?

     

    Capture.PNG

  • ghdunn Profile Picture
    409 on at

    @mdevaney 

     

    or maybe I have cracked it 🙂

     

    Office365Outlook.ContactGetItemsV2("Contacts").value.displayName

     

    Would that be the favoured way of doing this?

  • Verified answer
    mdevaney Profile Picture
    29,991 Moderator on at
    @ghdunn
    Yes, you have done it well! I can see that you understand the new concept here. When working with a table or a record you can type dot and the name of the property to select it (example: SomeTable1.Result)

    Great work!

    —-
    Please Accept as Solution if this post answered your question so others may find it more quickly. If you found this post helpful consider giving it a Thumbs Up.
  • CU17031922-0 Profile Picture
    21 on at

    PowerApp

     

    I am trying to pull Outlook contacts from outlook. I am using Office365.ContactGetItems("Contacts").value. It works with Default contacts folder but i have Sub contact folder called Subcontacts.

     

    When I try to use  Office365.ContactGetItems("Subcontacts").value, i got following error 

    Office365.ContactGetItems failed: { "status": 400, "message": "Id is malformed.\r\nclientRequestId

    "error": { "message": "Id is malformed.", "code": "ErrorInvalidIdMalformed", "originalMessage": "Id is malformed." }, "source": "office365-wus.azconn-wus-001.p.azurewebsites.net" }

     

     

    Please help

     

    T

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard