Skip to main content

Notifications

Announcements

No record found.

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

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

(0) ShareShare
ReportReport
Posted on by 6

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 75,561 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 993 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 6 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 41 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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,354 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans