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 :
Small and medium business | Business Central, N...
Suggested Answer

Keep userse from seeing Purchase Invoice, but be able to approve

(0) ShareShare
ReportReport
Posted on by 10

I am in a situaltion where we want people to be able to approve Purchase Invoice, on page 662 Approval Request Entries.

But it has a OnAfterGetCurrRecord trigger where it gets the record in the Table ID field with a RecRef, so you would need to have the Read permission for that record, Purchase Header in this instance.
But i dont want them to have read permission to Purchase Header, and i cant seem to get an indirect permission to work, because i am not able to add the permission property to a page extension.

So i dont know what to do in this situation, i dont see a solution atm.

The code from page 662

    trigger OnAfterGetCurrRecord()
    var
        RecRef: RecordRef;
    begin
        ShowRecCommentsEnabled := RecRef.Get("Record ID to Approve");
    end;

I have the same question (0)
  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    Then you will have to build your own page.

    But is it not a bit weird that you want them to approve something you do not want them to have read permissions to?

  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    If you want you can die the "Record" button by using Page extension of that page.

    Thanks.

  • Viggo VIL Profile Picture
    10 on at

    Because by giving them read permission to Purchase header they would be able to see all the purchase invoices, and i only want them to see the once they need to approve.

  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    In that case you need to check if any approver id is maintained on the Purchase header, which I am not sure, so that you can write your logic only allow only those purchases which are going to approve.

    Thanks

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!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 524 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 399 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 354 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans