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

Insert a Job Ledger Entry

(1) ShareShare
ReportReport
Posted on by 54
Hi,

I need to programatically insert new entries in the Job Ledger Entry table.


I have built a new API Page using the AL language. After publishing it to the Sandbox environment, I can read entries successfully. However, when trying to insert new entries, I get this error message :

b'{"error":{"code":"Internal_ServerError","message":"Sorry, the current permissions prevented the action. (TableData 169 Job Ledger Entry Project Ledger Entry Insert: BC-JIRA)  CorrelationId:  c377f93f-7c0a-4807-af03-f79d4d75ff23."}}'
 

I have tried adding permissions to the extension using the code below, but the permission set is created a "System" permission set instead of an "Apllication". The same error message is prompted.

permissionset 90102 "JIRA WORKLOGS"
{
    Assignable = true;
    Caption = 'Job Ledger Entry Permissions';
    Permisions = 
        TableData "Job Ledger Entry" = RMID;
}
 
 
Any help on the matter would be greatly appreciated.
 
 
Best regards,
Charles-Antoine Beaulieu
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    95,741 Super User 2025 Season 2 on at
    Hi, hope the following helps. The same is true in the API
    Dynamics 365 Business Central: Can we insert/modify/delete posted data (Posted Documents & Posted Entries) via AL???
     
    Thanks.
    ZHU
  • Verified answer
    Ben Baxter Profile Picture
    6,620 Super User 2025 Season 2 on at
    You need to update your API to send the entries to the Project Journal, then Post the journal.  This way it follows the standard posting process to record the Project Ledger Entries.  It is advisable to have the API write to a specific Batch so the auto-post process does not impact anything a User may have entered.
     
    Best Regards,
    Ben Baxter
    Accent Software Inc
  • CB-05112122-0 Profile Picture
    54 on at
    I am able to write to a specific Batch, but I do not know how to then "Post" this batch.

    Can this be done through a custom API on the Job Journal Batch table?
  • Suggested answer
    YUN ZHU Profile Picture
    95,741 Super User 2025 Season 2 on at
    Hi, hope the following helps.
    Dynamics 365 Business Central: How to use Standard/Custom API Bound Actions
     
    Thanks.
    ZHU

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,066

#2
YUN ZHU Profile Picture

YUN ZHU 658 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 595

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans