cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Gilmour
Helper II
Helper II

PowerApps gallery linked to Outlook365 only shows a few contacts

I have a gallery in my app receiving data from Outlook365, specifically, Outlook contact's Display Name and email address. The gallery Items property set to Office365Outlook.ContactGetItemsV2("Contacts").value.  

 

Although the Outlook folder contains 290 contacts, the gallery only shows 10 records.

 

Can anyone explain why and help me solve this?

Thanks

 
1 ACCEPTED SOLUTION

Accepted Solutions
joshburnsM4dev
Resolver I
Resolver I

hi @Gilmour 

Try this Office365Outlook.ContactGetItemsV2("Contacts",{'$top':999}).value

 

Cheers

 

Josh

View solution in original post

4 REPLIES 4
joshburnsM4dev
Resolver I
Resolver I

hi @Gilmour 

Try this Office365Outlook.ContactGetItemsV2("Contacts",{'$top':999}).value

 

Cheers

 

Josh

Gilmour
Helper II
Helper II

Thank you @joshburnsM4dev , it works! 

{'$top':999} .... Totally novel concept to a novice like me... So I guess that unless you specify how many records you want to show in the gallery, you'll just get the last ten added. May I also ask: why 999?

 

Thank you again!

joshburnsM4dev
Resolver I
Resolver I

i am unsure of the thresholds @Gilmour but if you know there is 290 contacts, you can replace 999 with 290 and should return all

Gilmour
Helper II
Helper II

@joshburnsM4devSounds good. I'll play around with it a bit. Thank you!

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Super User 2 - 2022 Congratulations

Welcome Super Users

The Super User program for 2022 - Season 2 has kicked off!

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,488)