Skip to main content

Notifications

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

Print multiple report and download

(0) ShareShare
ReportReport
Posted on by 129

Hi experts

I am working on report and below are the requirement:

Select multiple invoices and print them. All files download into single zip file.

Problem: I have setup print mgmt as FILE and below code working file. but later on I came to know already setup Email on PRINT MGMT in PROD.

So when I am setup EMAIL and FILE on PRINT mgmt. Below code sending email as well.

How we can handle only FILE from print mgmt without affecting the EMail part? 

Solution: I have created menu item and wrote below code

public static void main(Args _args)
{

custInvoiceJour_ds = _args.callerFormControl().formRun().dataSource(); 
caller = _args.caller();

helper  = MultiSelectionHelper::createFromCaller(caller); 

// Multi select logic

while(custInvoiceJour.RecId != 0)
{
   _args.record(custInvoiceJour);
    new MenuFunction(menuitemOutputStr(SalesInvoice), MenuItemType::Output).run(_args);

  // Some logic
}

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…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,842 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans