web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Best/Easiest way to automate Sales Order Confirmation and Delivery (Packing Slip) via X++?

(0) ShareShare
ReportReport
Posted on by 79

Hi everyone,

I am working on a custom X++ development to automate the Sales Order lifecycle in D365 F&O.

Currently, I have successfully handled the invoicing step using the SalesFormLetter class (changing the status from Delivered to Invoiced), and it works great.

However, to complete the full automated cycle from the code backend, I need to automate the first two steps right after the order creation:

  1. Confirm the Sales Order (Status: Confirmed).

  2. Post Packing Slip / Deliver the order (Status: Delivered).

Since these orders are created programmatically and need to be processed automatically in the background, what is the best, easiest, and most performance-efficient way to achieve this using X++?

Should I instantiate SalesFormLetter with DocumentStatus::Confirmation and DocumentStatus::PackingSlip for each order just like I did with the invoice? Or is there a better standard pattern or framework I should leverage?

Any clean code snippets, suggestions, or best practices would be highly appreciated!

Thanks in advance.

 

I have the same question (0)

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 628 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 612

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 589 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans