Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Unanswered

Intercompany sales order packing issue with print form letter

(0) ShareShare
ReportReport
Posted on by

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?

  • Jason0810M Profile Picture
    Jason0810M on at
    RE: Intercompany sales order packing issue with print form letter

    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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans