Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Manually update in G/L Entry field can't be done

Posted on by 89

Hello, Everyone,

(GREEN COLOR) I have done a development that allow to track the sales order related to every G/L entry, it is done by a Code Unit (IT ONLY WORKS WITH THE NEW G/L ENTRIES)

but I need to update all the historic data to be tracked, so I am trying to do it by ETL or manually, nevertheless when I edit (RED COLOR) it saved but after a while is deleted, no error is shown

pastedimage1680018269230v1.png

pastedimage1680018499828v2.png

We think it might be due to the permissions set in a direct edit, but we don't know how to change it.

pastedimage1680018839250v3.png

Do you have any idea or something may be useful?

Best Regards, 

Nicolas Payan

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,472 Super User 2024 Season 2 on at
    RE: Manually update in G/L Entry field can't be done

    Hi, I think you can create a codeunit for batch processing, and then give Codeunit permissions, as Inge mentioned.

    Here is an example from codeunit 80 "Sales-Post".

    pastedimage1680049825253v1.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: Manually update in G/L Entry field can't be done

    You need to set explicit permission in the object you use when you are performing your update. Here are documentation with examples:

    learn.microsoft.com/.../devenv-permissions-property

  • Nicolas Payan Profile Picture
    Nicolas Payan 89 on at
    RE: Manually update in G/L Entry field can't be done

    Hello, Bilal,

    It is kind of wear, because when I change the Description field it let it change

    pastedimage1680032838628v1.png

    Regards,

    Nicolas Payan

  • Suggested answer
    Bilal Haider Profile Picture
    Bilal Haider 45 on at
    RE: Manually update in G/L Entry field can't be done

    Hi,

    I think your understanding is right that it is a permission issue. Indirect permission means that this user can indirectly do the operation (means using some codeunit/report which has permissions and these permissions we explicitly give using Permissions property).

    Try to give this user direct permissions.

    Otherwise, you can try to use some codeunit / report by giving it enough permissions.

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!

Community AMA December 12th

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans