I Wanted to add multiple user in users and wanted to create sales order in each users and do post it how it can be done through Al code.
Yes, this is clear but I want to check sales order in multiple users which is posted and it is in posted sales shipments and want to check how many orders are there in posted sales shipment by keeping one hour difference then show that table in mail as given in image
So how can be done to check count of posted sales order on more than one user and total it in Al code
Please help in this if possible
Thankyou
Thankyou it worked
Thankyou
Hello,
For First Step- Refer this link-> https://erpconsultors.com/create-user-in-d365-bc-saas-or-online-version/
Second Step- Create On Batch job and write code as per the above requiremnet
Regards
Amit Sharma
To create a sales order using AL you need to create a Sales header and then sales lines. A simple code can be like this function below where you give customer No and Item No, and then document is created.
procedure CreateSalesHeader(CustNo: Code[20]; ItemNo: Code[20]) var SalesHeader: Record "Sales Header"; SalesLines: Record "Sales Line"; begin SalesHeader.init; SalesHeader.Validate("Document Type", SalesHeader."Document Type"::Order); SalesHeader.Validate("No.", 'SO100001'); //if Number from No. Series is required then comment this SalesHeader.Validate("Sell-to Customer No.", CustNo); SalesHeader.Insert(true); SalesLines.Init; SalesLines."Document Type" := SalesHeader."Document Type"::Order; SalesLines."Document No." := SalesHeader."No."; SalesLines."Line No." := 10000; SalesLines.Type := SalesLines.Type::Item; SalesLines.Validate("No.", ItemNo); SalesLines.Validate(Quantity, 1); SalesLines.Insert(true); end;
Hi Dividutt,
To create users in BC SaaS, you first need to create a user in Microsoft 365 and assign a license.
Then use the Update users from Microsoft 365 action on users page.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,219 Super User 2024 Season 2
Martin Dráb 230,056 Most Valuable Professional
nmaenpaa 101,156