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 Apps
Answered

Function

(0) ShareShare
ReportReport
Posted on by 65

Can someone help me resolve this function?

 

ClearCollect(menubar, Table({Title: "Helpline", Icon: icon_helpline}))

 

aaa.png 

 

Categories:
I have the same question (0)
  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    Try adding "" around icon_helpline

  • evanscona Profile Picture
    65 on at

    That did not work either 

     

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    Is Table an existing table of data?

     

     

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    If Table is not a table of existing data, your formula should look like this:

     

    ClearCollect(menubar,
    
     {
    
     Title: "Helpline",
     Icon: icon_Helpline
    
     }
    )
  • Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    What is icon_helpline?  Is that the name of a screen you want to navigate to?  You mentioned it was a menu system you are trying to create.  Or is Icon supposed to be something else that shows in the dropdown?

  • evanscona Profile Picture
    65 on at

    The icon_helpline is an image uploaded from PC. I wanted to create a navigation drop-down list with name "helpline" with an image attached to the left of the helpline

     

  • Verified answer
    RusselThomas Profile Picture
    4,014 on at

    Hi @evanscona ,

    Taking a stab based off the image you posted - the green highlight of menubar in your formula typically means that "menubar" is the name of an object - like a gallery, or something.  It's not a collection that can contain data.  

    If, for example, you've created a gallery or a text label or something, and called it "menubar", you can't collect data into that name.  The name is reserved for that object - and the object itself can't contain table data.

    Also, if you're just collecting a single row, unless you want a nested table, you can just specify the row data without the Table() function;

    Try change the name of the collection to something like collectMenuBar.

     

    ClearCollect(collectMenubar, {Title: "HelpLine", Icon: icon_helpline})

     

    You can then set your Items: property of your (presumably) menubar gallery to collectMenuBar.

    Hope this helps,

    RT

  • Pstork1 Profile Picture
    69,657 Most Valuable Professional on at

    I don't think you can show text and an icon in a dropdown.

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @evanscona 

    You formula is fine from a syntax scenario.  

    My only question would be, what is the actual error that you are getting?  You show the red underlines, but what is the error that shows for that formula?

    My guess is that you potentially have another place that you are trying to use this collection (why a collection for this I don't know) and you are providing a different signature.  How else are you using this collection in your app?

  • evanscona Profile Picture
    65 on at

    Thanks Russel it works now

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard