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

Announcements

No record found.

News and Announcements icon
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 68

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
    68 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
André Arnaud de Calavon Profile Picture

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

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 386

#3
Adis Profile Picture

Adis 259 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans