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...
Suggested Answer

Power App - Item Journal - Create Multiple Lines

(0) ShareShare
ReportReport
Posted on by 15,529

Hi 

I created a Power App to show users all available item then let them to select multiple and items then increase or decrease the QTY in Power App. Then post them into Item Journal 

But I run to the issue that I get an error for Line No. I tried both below methods but looks like each time Power App try to create one line then create the new line without increase line no. 

Is it anyway that I can fix my Power App code to create multiple line a the same time (like upload from Excel)? 

I try to avoid adding Line No to my app since it get complex. 

Method one: to loop through each line. Still shows error that line no exist. 

ForAll(
    ItemJournalPositiveEnryCollection,
    If(
        !IsBlank(ItemNo_),
        Patch(
            'item_Journal_Lines (hougaard/SOD/v2.0)',
            Defaults('item_Journal_Lines (hougaard/SOD/v2.0)'),
            ThisRecord
        )
    )
)

Method two: send them all at the same time but I get the same error 

Patch('item_Journal_Lines (hougaard/SOD/v2.0)',ItemJournalPositiveEnryCollection)

I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist.  If you need assistance with debugging or coding I would recommend discussing this on one of our communities.

    www.yammer.com/dynamicsnavdev

    I will open this up to the community in case they have something to add.

    Thank you.

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

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,007 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 948 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans