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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

How can I edit a new field information in the table GL Entries with AL Development?

(0) ShareShare
ReportReport
Posted on by 25

We have an AL development that is adding the Sales Order number in the GL Entries table when Shipment/Sales Order is posted. But we are getting the error:

Sorry, the current permissions prevented the action. (TableData G/L Entry Modify: ALProjectFTR). 

We've tried to fix it following this post: https://yzhums.com/29221/

Assigning permissions to the table and page:

pastedimage1679598240292v1.png

We verified the user's permissions too:

pastedimage1679598400386v3.png

But still having the same error message:

pastedimage1679598271829v2.png

Could you please advise?

Thank you, 

I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,111 Moderator on at

    You need to give the AL object explicate permissions to edit the G/L Entry table because it is a protected table.

    See the documentation and example here: learn.microsoft.com/.../devenv-permissions-property

  • Verified answer
    YUN ZHU Profile Picture
    95,739 Super User 2025 Season 2 on at

    Hi, Inge is right, you can refer to standard codeunit 80 "Sales-Post", for processing posted data in BC, you need to add Permission property in your objects.

    pastedimage1679616681516v1.png

    pastedimage1679616692093v2.png

    Hope this helps as well.

    Thanks.

    ZHU

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

    Hi,

    adding more info.

    Find the object where you have wrote your logic, and in that object, add permission property and add like this

    If this is a Codeunit object for you.

    Permissions = tabledata "G/L Entry" = rm;

  • Antea Ruiz Profile Picture
    25 on at

    Thank you all for your recommendations! It worked by changing the permissions to the GL entry table.

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

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 2,135

#2
YUN ZHU Profile Picture

YUN ZHU 733 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 612

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans