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

Announcements

No record found.

News and Announcements icon
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)
  • 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

  • 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.

  • 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 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?

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

    No, where did you get that from?

    Do you understand how permission work?

  • 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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,822 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,136 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 956 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans