Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Create Sales order line in D365 Finance and Operations. Inventory LotId is required.

(0) ShareShare
ReportReport
Posted on by

Hello, 

 

I am trying to create a new Sales order line in the Power App canvas application. I am using the following formula:

 

Patch(SalesOrderLines, Defaults(SalesOrderLines), {'Sales order':"SO0001",'Item number': "ITEMNUMBER", Quantity:1, Company:"usmf"}).

 

But I am getting the error: InventoryLotId: Field 'InventoryLotId' is required.

 

However, I can create a Sales order line manually, as well as by Excel Add-in. In both cases, the system assigns a new Lot ID automatically according to the number sequence. What is wrong with my formula?

 

Appreciate any help!

 

Slava.

  • Suggested answer
    Fernando Acevedo Profile Picture
    65 on at
    RE: Create Sales order line in D365 Finance and Operations. Inventory LotId is required.
    [quote user="Power Platform Communities"]

    Hello, 

     

    I am trying to create a new Sales order line in the Power App canvas application. I am using the following formula:

     

    Patch(SalesOrderLines, Defaults(SalesOrderLines), {'Sales order':"SO0001",'Item number': "ITEMNUMBER", Quantity:1, Company:"usmf"}).

     

    But I am getting the error: InventoryLotId: Field 'InventoryLotId' is required.

     

    However, I can create a Sales order line manually, as well as by Excel Add-in. In both cases, the system assigns a new Lot ID automatically according to the number sequence. What is wrong with my formula?

     

    Appreciate any help!

     

    Slava.

    [/quote]

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,208 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,970 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans