web
You’re offline. This is a read only version of the page.
close
Skip to main content
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

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)

  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: Power App - Item Journal - Create Multiple Lines

    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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans