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

Posting a Job Ledger Entry

(3) ShareShare
ReportReport
Posted on by 54
Hi,

My goal is to programmatically log resource time to Business Central using data coming from another app. Thus, I have created an AL API extension for the Job Ledger Entry Table. 

I can successfully read Job Ledger Entries. However, when trying to post one, I get this error message: "Sorry, the current permissions prevented the action."
 
Where are these permissions set and is it possible to change them? If not, how would you recommend proceeding?
 
page 50107 jobLedgerEntriesAPI
{
    APIGroup = 'automatisation';
    APIPublisher = 'automatisation';
    APIVersion = 'v1.0';
    ApplicationArea = All;
    Caption = 'jobLedgerEntriesAPI';
    DelayedInsert = true;
    EntityName = 'jobLedgerEntry';
    EntitySetName = 'jobLedgerEntries';
    PageType = API;
    SourceTable = "Job Ledger Entry";
   
    layout
    {
        area(Content)
        {
            repeater(General)
            {
                field(postingDate; Rec."Posting Date")
                {
                    Caption = 'Posting Date';
                }
                field(entryType; Rec."Entry Type")
                {
                    Caption = 'Entry Type';
                }
                field(documentNo; Rec."Document No.")
                {
                    Caption = 'Document No.';
                }
                field(jobNo; Rec."Job No.")
                {
                    Caption = 'Project No.';
                }
                field(jobTaskNo; Rec."Job Task No.")
                {
                    Caption = 'Project Task No.';
                }
                field("type"; Rec."Type")
                {
                    Caption = 'Type';
                }
                field(no; Rec."No.")
                {
                    Caption = 'No.';
                }
                field(description; Rec.Description)
                {
                    Caption = 'Description';
                }
                field(unitOfMeasureCode; Rec."Unit of Measure Code")
                {
                    Caption = 'Unit of Measure Code';
                }
                field(quantity; Rec.Quantity)
                {
                    Caption = 'Quantity';
                }
                field(unitCost; Rec."Unit Cost")
                {
                    Caption = 'Unit Cost';
                }
            }
        }
    }
}
 
Best regards,
Charles-Antoine
I have the same question (0)
  • Suggested answer
    Ramesh Kumar Profile Picture
    7,529 Super User 2025 Season 2 on at

    Hi,

    Please ask your Business Central Admin user to grant you access to the relevant table or assign you a Super User role, which will allow you to modify all tables. There are two possible ways to configure this, depending on the setup:

    1. Entra App Permissions – This needs to be adjusted within Business Central (most likely).
    2. User Permissions – Your individual user permissions may need to be updated.
     
    If this helped you, please check the box Does this answer your question?
     
     
  • Verified answer
    Nitin Verma Profile Picture
    21,708 Moderator on at
    Hi,
     
    You can use this property in the same object from where you are posting.
     
    Permissions = tabledata "Job Ledger Entry" = RIMD;
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,614 Super User 2025 Season 2 on at

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

#2
YUN ZHU Profile Picture

YUN ZHU 733 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 612

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans