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 70

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

  • Suggested answer
    huijij Profile Picture
    19,813 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
    70 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 555 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 484 Super User 2026 Season 2

#3
CU10121822-0 Profile Picture

CU10121822-0 378

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans