Announcements
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.
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]
André Arnaud de Cal...
294,208
Super User 2025 Season 1
Martin Dráb
232,970
Most Valuable Professional
nmaenpaa
101,158
Moderator