Skip to main content

Notifications

Community site session details

Community site session details

Session Id : lb88TRXM86MYTJ7BlppZB7
Power Apps - Building Power Apps
Unanswered

Using Microsoft Graph for Onenote Pages in Combo Box

Like (0) ShareShare
ReportReport
Posted on 16 Sep 2020 04:06:09 by 6

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

  • andrewhei Profile Picture
    6 on 22 Sep 2020 at 01:29:46
    Re: Using Microsoft Graph for Onenote Pages in Combo Box

    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

  • v-yutliu-msft Profile Picture
    on 21 Sep 2020 at 05:50:28
    Re: Using Microsoft Graph for Onenote Pages in Combo Box

    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,

     

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,679 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard
Loading started