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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Create Intercompany Sales order confirmation in D365 FO

(0) ShareShare
ReportReport
Posted on by 66

Hi,

I have a SO in Company 'ABC' configured with intercompany setup for a vendor.

So a SO is created and based on the sourcing vendor the SO is created in the corresponding sourcing site (in this case 'xyz')

The Question is what are the classes used to create a SO in the interccompany and what is the trigger.

In this case whenever a new SO is created and saved in company  ABC it creates a new SO and PO in company XYZ.

What I want to do is that whenever a SO is confirmed in ABC then the same SO should be confirmed in XYZ at the same time.

So just wanted to check which would be the best place to write the code.

I can find the corresponding record via related Sales order.

Thanks,

VK

I have the same question (0)
  • Suggested answer
    huijij Profile Picture
    19,811 on at

    Hi,

    You may check the method autoCreateOrder() to create a intercompany sales order in the class of TradeInterCompany:

    TradeInterCompany::autoCreateOrder(salesTable);

  • vicky1234 Profile Picture
    66 on at

    Further to this the issue is that the user can select multiple Sales orders and do a confirm sales order which in case of COC only considers 1st record and I am not sure where exactly we need to put the code or loop for all the selected records.

    I have written a COC for "SalesFormLetter_Confirm" run after next.

    It works fine with single order but for multiple records it just updates the latest one and not others

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
Martin Dráb Profile Picture

Martin Dráb 544 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans