cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Using Microsoft Graph for Onenote Pages in Combo Box

Hi everyone,

 

I am trying to list out the pages title of Onenote pages in combo box by using Microsoft Graph (as the Onenote function getpagesinsection only returns 20).

 

I have created the custom connector and the test is success:

andrewhei_0-1600228999074.png

andrewhei_1-1600229061226.png

But when I use it in a combo box, although there is no error in the formula, nothing is showing:

andrewhei_2-1600229125311.png

andrewhei_3-1600229142217.png

Really need a hand here. Thank you!

 

Andrew

2 REPLIES 2
Community Support
Community Support

Hi @andrewhei ,

1)Is MicrosoftGraphConnector.GetPages a behavior formula?
If yes, please set this to one behavior property , save the returned table in a collection, the set the combo box' items to this collection.
Please notice that: combo box's Items property is not a behavior property, it needs a formula that will return a table.

For example: set the app's OnStart:

ClearCollect(collection1,MicrosoftGraphConnector.GetPages(...))

set the combo box's Items:

collection1

2)Please check whether this function returns blank table.

For example: set the app's OnStart:

 

ClearCollect(collection1,MicrosoftGraphConnector.GetPages(...))

 

use one label to check:

IsEmpty(collection)

If it display as true, then this function returns blank table.

In this situation ,please modify your custom connector's applications.

3)select correct primary text for your combo box

Since combo box will reset if you change its Items property, so sometimes you need to reinsert a combo box and set its Items, choose primary text.

 

 

Best regards,

 

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Phoebe,

 

Thanks for the reply.

 

I followed the steps and got an empty table.

 

Not sure which part of the connector is wrong though, it does give the desired response in the testing:

andrewhei_0-1600738155801.png

Thank you!

 

Andrew

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Check out the Power Apps Community Call for January 2021

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (4,089)