Skip to main content

Notifications

Small and medium business | Business Central, N...
Answered

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

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, 

  • Antea Ruiz Profile Picture
    Antea Ruiz 25 on at
    RE: How can I edit a new field information in the table GL Entries with AL Development?

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

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: How can I edit a new field information in the table GL Entries with AL Development?

    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;

  • Verified answer
    YUN ZHU Profile Picture
    YUN ZHU 73,333 Super User 2024 Season 2 on at
    RE: How can I edit a new field information in the table GL Entries with AL Development?

    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
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: How can I edit a new field information in the table GL Entries with AL Development?

    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

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans