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 64

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

  • vicky1234 Profile Picture
    64 on at
    RE: Create Intercompany Sales order confirmation in D365 FO

    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

  • Suggested answer
    huijij Profile Picture
    19,811 on at
    RE: Create Intercompany Sales order confirmation in D365 FO

    Hi,

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

    TradeInterCompany::autoCreateOrder(salesTable);

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February 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... 293,027 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,852 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans