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

Custom Packing slip

(0) ShareShare
ReportReport
Posted on by 417

Hi,

I have a requirement where one customer want new design layout for packing slip. I followed the below example. 

https://docs.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/analytics/custom-designs-business-docs

Its working fine when packing slip report is printed using print management. It is printing new custom design based on configuration done.

But customer not printing manually. Its automated. In pack screen when customer enter Shipment / License plate # packing slip print automatically. In automated printing, system uses the default design and not the custom design configured in print management.

Why in automated printing it does not take custom design layout?

Regards,

Manivannan

 

I have the same question (0)
  • Suggested answer
    Satish Panwar Profile Picture
    14,671 Moderator on at

    Hi Manivannan,

    Don't see print management for packing slip under Adv WHS...can you try to see if the report has logic to use print management (from S&M or somewhere else). Else you may have to look for an extension.

    pastedimage1580798806188v1.png

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi Manivannan,

    If you setup / select the business document for your packing slip in the print management and then select the 'use print management' parameter when you post the packing slip the packing slip with the new design shall be printed.

    For a mass distribution you can define an electronic reporting output destination that links for example to the email account of your customer. This needs to be setup in the organisation admin module in the electronic reporting section and not in the AR print management settings.

    Would be great if you could check this setup and let us know if this fixes your requirements.

    Best regards,

    Ludwig

  • vannamani77 Profile Picture
    417 on at

    I already have extension class extended from SalesPackingSlipDP where I modify few properties of salesPackingSlipHeaderTmp. Below is the code

    protected SalesPackingSlipHeaderTmp initializeSalesPackingSlipHeader()
    {


    SalesPackingSlipHeaderTmp salesPackingSlipHeaderTmp = next initializeSalesPackingSlipHeader();
    str 400 custaccount = Salestable::find(this.parmCustPackingSlipJour().SalesId).CustAccount;
    Barcode barcode;
    barcode = Barcode::construct(BarcodeType::Code128);

    if(custaccount == "25768DS")
    {
    barcode.string(true, salesPackingSlipHeaderTmp.ASPGiftMessage);
    }
    else
    {
    barcode.string(true, salesPackingSlipHeaderTmp.CustomerRef);
    }

    barcode.encode();
    salesPackingSlipHeaderTmp.CITBarCodeString= barcode.barcodeStr();
    return salesPackingSlipHeaderTmp;

    }

    I also have another class extends from SalesPackingSlipController. In this class only the report get printed. I have given the code below.

    class ASPSalesPackingSlipcontroller extends SalesPackingSlipController
    {

    public static ASPSalesPackingSlipcontroller construct()
    {
    return new ASPSalesPackingSlipcontroller();
    }

    public static void main(Args _args)
    {

    SrsReportRunController formLetterController = ASPSalesPackingSlipcontroller::construct();
    ASPSalesPackingSlipcontroller controller = formLetterController;

    controller.initArgs(_args, PrintMgmtDocType::construct(PrintMgmtDocumentType::SalesOrderPackingSlip).getDefaultReportFormat());

    if (classIdGet(_args.caller()) == classNum(SalesPackingSlipJournalPrint))
    {
    formLetterController.renderingCompleted += eventhandler(SalesPackingSlipJournalPrint::renderingCompleted);
    }
    formLetterController.startOperation();

    }

    }

    Can you help me out how to print packing slip based on CustAccount

  • vannamani77 Profile Picture
    417 on at

    Hi Satish,

    With reference to my previous reply, When packing slip is printed through packing slip journal it is printing fine based on customer. But while posting packing slip to printer (done in pack screen) it is always prints default layout.

  • Satish Panwar Profile Picture
    14,671 Moderator on at

    Hi Manivanna,

    My previous response was that it doesn't seems to exist atleast on WHS parameters, suggested that you check the code and see if the logic is there to use the print management. Regarding your code, let's see if any other volunteer can review and suggest next steps.

  • Verified answer
    Sukrut Parab Profile Picture
    71,735 Moderator on at

    Can you confirm what report design  following piece of code returns ?

    PrintMgmtDocType::construct(PrintMgmtDocumentType::SalesOrderPackingSlip).getDefaultReportFormat()

    If its returning correct design , which you want to be printed then take a look at code in your controller class main method. You are running formLetterController.startOperation(); which is going to run default salespackingSlipController and not the controller variable you declared where you are initializing your own design.

  • Verified answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi Manivannan,

    Why do you still use the old SSRS reports?

    Aren't the new business documents an option for you?

    Please see:

    docs.microsoft.com/.../er-business-document-management

    Design and maintenance might be much easier even though you might currently not have the same features available as for SSRS.

    Yet, it might be a fast and cheap(er) alternative.

    Probably give this new functionality a try ;-)

    Best regards,

    Ludwig

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 658

#2
André Arnaud de Calavon Profile Picture

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

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 333 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans