Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2021 Release Wave 2Discover the latest updates and new features releasing from October 2021 through March 2022.
2021 release wave 2 plan
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
I have a sales order in invoiced status. It is having already 4 lines.
*** Customer asked me to insert more 3 lines. I wrote below code
static void Job18(Args _args)
salesLine.SalesId = "SO-00033417";
salesLine.ItemId = "72202616";
salesLine.createLine(NoYes::Yes, // Validate
NoYes::Yes, // initFromSalesTable
NoYes::Yes, // initFromInventTable
NoYes::Yes, // calcInventQty
NoYes::Yes, // searchMarkup
NoYes::Yes); // searchPrice
I saw, the existing item has LOT ID. Can you please let me know how i will insert lot ids for new 3 lines ?
is above code is ok? If I missed anything please let me know.
You need to fill InvenDim with correct values and set in salesLine.
There are many examples of this on the Internet. I have shared the two below, but the important thing for you is to set the correct values and get the correct InventDimId with InventDim::findOrCreate().
What about the Lot I'd?
I need this because I need to update SALESID and LotId in some other form for reference after successfully done sakeline
Set qty/amount values
Business Applications communities