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:
We verified the user's permissions too:
But still having the same error message:
Could you please advise?
Thank you,
Thank you all for your recommendations! It worked by changing the permissions to the GL entry table.
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;
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.
Hope this helps as well.
Thanks.
ZHU
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
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,219 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156