Skip to main content

Notifications

Announcements

No record found.

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?

  • Govinda Kumar Profile Picture
    Govinda Kumar 2,203 Super User 2024 Season 1 on at
    RE: Why am i only able to add Table Data Permissions on a Codeunit?

    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
    Viggo VIL 10 on at
    RE: Why am i only able to add Table Data Permissions on a Codeunit?

    No, where did you get that from?

    Do you understand how permission work?

  • Suggested answer
    Govinda Kumar Profile Picture
    Govinda Kumar 2,203 Super User 2024 Season 1 on at
    RE: Why am i only able to add Table Data Permissions on a Codeunit?
    [deleted]
  • Viggo VIL Profile Picture
    Viggo VIL 10 on at
    RE: Why am i only able to add Table Data Permissions on a Codeunit?

    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
    MetaKa on at
    RE: Why am i only able to add Table Data Permissions on a Codeunit?

    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
    Viggo VIL 10 on at
    RE: Why am i only able to add Table Data Permissions on a Codeunit?

    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
    Govinda Kumar 2,203 Super User 2024 Season 1 on at
    RE: Why am i only able to add Table Data Permissions on a Codeunit?

    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

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,391 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans