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 / Component Menu Table i...
Power Apps
Answered

Component Menu Table items

(0) ShareShare
ReportReport
Posted on by 27

Hello there,

 

So I have a bit of a hiccup here,

 

I have here a Component Menu and the Table is like this, 

 

Table(
    {
        Name: "Home",
        Icon: HOME,
        Navigate: 'Home Screen'
    },
    {
        Name: "Request Leave",
        Icon: LR,
        Navigate: 'Request Screen'
    }
)
 
The problem is what I only want to show the "Request Leave" menu item to a specific department. what codeshould I need to put? I know that I'll be putting it on the OnStart but on the table I dont know exactly if I can make IF functions there.
 
Thank you for your help
Categories:
  • Verified answer
    boww1 Profile Picture
    27 on at

    Hello guys,

     

    I solve my problem on my own haha 

     

    so basically I put the code on the OnStart property like this,

     

    If(
        Or(
            varUser.mail = "adminemail",
            "Specific Department" in varUser.department,
        ),

        Set(colMenuOptionsV2, Table( table_data here));
    );

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard