web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Why am i only able to add Table Data Permissions on a Codeunit?

(0) ShareShare
ReportReport
Posted on by 10

Hey

I am trying to limit the user’s ability to navigate to the Purchase Invoice page (51).
But i am not able to use the indirect execute permission, because i am not able to add the permission to my codeunit, i can only add TableData permission to my codeunit.

So how do i use the indirect execute permission?

I have the same question (0)
  • Govinda Kumar Profile Picture
    2,304 Moderator on at

    I apologize, I did not see your latest reply as the thread page had not loaded when I sent my previous message. I was only able to see your initial reply

    Regards

  • Viggo VIL Profile Picture
    10 on at

    No, where did you get that from?

    Do you understand how permission work?

  • Suggested answer
    Govinda Kumar Profile Picture
    2,304 Moderator on at
    [deleted]
  • Viggo VIL Profile Picture
    10 on at

    I dont see what is hard to understand?

    If you want to use an indirect permission (x insted of X), then the object you are using needs to have the permission insted, so you can "inherit" its permission.

    But you are not able to add an page Execute permission to a codeunit, so where would i use a indirect execute permission if not in a codeunit?

  • MetaKa Profile Picture
    on at

    Sorry, but Its uncomprensible :S

    Do u want to open a page from a codeunit?
    Then use Page.Run

    Do u want not to open the same page in the same codeunit?
    then dont use the code above (?)

    U want a user be unable to open a page?
    then use the permission module where u can filter the page, so the user cant open it (nothing to do with codeunits)

    Pls we need more information of what u are tryiing to do

  • Viggo VIL Profile Picture
    10 on at

    I want to open my page with my codeunit, so i can give the codeunit Execute permission to the page, and not the user.

  • Suggested answer
    Govinda Kumar Profile Picture
    2,304 Moderator on at

    Which codeunit you talking about? Do you want to enable indirect permission for your codeunit or your table? I don't understand

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,572

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 789 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 693 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans