Skip to main content

Notifications

Community site session details

Community site session details

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

Creating a record in Item Journal Lines through PowerApps

(4) ShareShare
ReportReport
Posted on by 12
Hi everyone im looking for help for creating a record in Item Journal Lines using a PowerApp, ive created an API for exposing the table but i cant manage to create the record because of the Journal template Name , Journal Batch Name and Line No.
 
On the other hand i tried creating a record through PowerAutomate but i cant see the requested values (Journal template Name , Journal Batch Name and Line No.) on the custom API in PowerAutomate.

Here are the values for the Item Journal Lines API:
layout
    {
        area(Content)
        {
            repeater(General)
            {
                field(systemId; Rec.SystemId)
                {
                    Caption = 'SystemId';
                }
                field(journalTemplateName; Rec."Journal Template Name")
                {
                    Caption = 'Journal Template Name';
                }
                field(journalBatchName; Rec."Journal Batch Name")
                {
                    Caption = 'Journal Batch Name';
                }
                field(documentNo; Rec."Document No.")
                {
                    Caption = 'Document No.';
                }
                field(itemNo; Rec."Item No.")
                {
                    Caption = 'Item No.';
                }
                field(lotNo; Rec."Lot No.")
                {
                    Caption = 'Lot No.';
                }
                field(no; Rec."No.")
                {
                    Caption = 'No.';
                }
                field(orderDate; Rec."Order Date")
                {
                    Caption = 'Order Date';
                }
                field(entryType; Rec."Entry Type")
                {
                    Caption = 'Entry Type';
                }
                field(description; Rec.Description)
                {
                    Caption = 'Description';
                }
                field(locationCode; Rec."Location Code")
                {
                    Caption = 'Location Code';
                }
                field(quantity; Rec.Quantity)
                {
                    Caption = 'Quantity';
                }
                field(unitOfMeasureCode; Rec."Unit of Measure Code")
                {
                    Caption = 'Unit of Measure Code';
                }
            }
        }
    }
}
  • Suggested answer
    Sohail Ahmed Profile Picture
    3,285 on at
    Creating a record in Item Journal Lines through PowerApps
    Use the standard Item Journal Lines API instead of a custom one. It handles required fields like journalTemplateName, journalBatchName, and lineNumber automatically.
     
     
     
    ✅ Mark this answer as verified if it helps you.
     
     
  • Suggested answer
    YUN ZHU Profile Picture
    84,278 Super User 2025 Season 1 on at
    Creating a record in Item Journal Lines through PowerApps
    Hi, This requires some additional processing. There is a standard General Journal API available. I think you can refer to its code.
     
    page 30049 "APIV2 - JournalLines":
     
    Hope this helps.
    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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics

Product updates

Dynamics 365 release plans