Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Delay Direct Delivery Purchase order creation

(1) ShareShare
ReportReport
Posted on by 81
Hi - 90% of our orders we create in F&O are Direct Delivery. When a Sales Line is created, the Purchase order is automatically created (or updated) at the /same time/. This is not an issue with an order that has 2 lines, however we have many orders that are over 100 lines. In our Tier 2 environment, this takes up to 12 minutes to place these orders. The orders are created via X++, ODATA and Entities. In our Tier 5 environment, it takes about 8 minutes. Both are way too long.
 
When we create the sales order with 100 stocked items the speed is significantly better. It would seem creating and updating the Purchase Orders takes up most of the time.
 
My question; is it possible to delay Direct Delivery Purchase orders to be created till after the Sales Order is confirmed?
 
Thanks in advance
 
  • Suggested answer
    Kevin Xia Profile Picture
    Microsoft Employee on at
    Delay Direct Delivery Purchase order creation
    Hi,

    if the current performance impact is a concern, you might want to consider optimizing the process. Here are some suggestions:

    1. Batch Processing:

      Instead of creating or updating each Purchase Order line immediately upon Sales Order line creation, consider implementing a batch processing mechanism. Accumulate the changes and process them in bulk at specific intervals. This can significantly reduce the overhead of creating/updating multiple Purchase Orders.
    2. Async Processing:

      Explore asynchronous processing options. You could initiate the Purchase Order creation/update in the background after the Sales Order is confirmed. This way, the user experience during Sales Order creation is not affected.
    3. Optimize Code and Queries:

      Review the X++ code, ODATA calls, and entities involved in the creation/update process. Optimize the code and ensure that the queries are efficient. Inefficient code or queries can contribute to slower processing times.
    Best regards,
    Kevin
  • André Arnaud de Calavon Profile Picture
    294,095 Super User 2025 Season 1 on at
    Delay Direct Delivery Purchase order creation
    Hi PhillyNJ,
     
    You can use the Trace Parser to check what exactly is consuming the majority of time. Maybe it would be possible to speed up the process if you find the culprit. I don't have an environment running, but I thought you can first confirm the SO and then create direct delivery orders.

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,095 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans