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, ...
Unanswered

Intercompany sales order packing issue with print form letter

(0) ShareShare
ReportReport
Posted on by 8

Hello,

I have implemented a user required where the packing is done for an intercompany sales order in company B which in turn will do the packing of a related sales order in company A (By means of a packing PO).

The code is as follows:
SalesFormLetter salesFormLetter = SalesFormLetter::construct(DocumentStatus::PackingSlip);
salesFormLetter.interCompanyPosted(true);
salesFormLetter.update(salesTableInterco,
DateTimeUtil::getSystemDate(DateTimeUtil::getUserPreferredTimeZone()),
SalesUpdate::All,
AccountOrder::None,
NoYes::No,
NoYes::No,
NoYes::No);

However, there is an issue where the packing slip of the sales order in company A is generated upon packing. This is not the desired outcome as the codes will do the intercompany packing for multiple records. This will cause a problem.

Is there any way to set the intercompany packing print form letter to false in this scenario?

I have the same question (0)
  • Jason0810M Profile Picture
    8 on at

    The problem is that the value of the field PrintSalesPackingslip is true in the table InterCompanyEndpointActionPolicy for the corresponding vendor. This is what causes the print form letter. The user wishes for the parameter to remain true but however bypass the parameter when called in my custom logic. Is there any way to do it?

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 683 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 398 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans