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

Set Email recipients of Print management settings through X++ code in SSRS/Docentric report

(0) ShareShare
ReportReport
Posted on by 758

Hi Everyone,

I want to run a custom SSRS report using Print management settings. User will set default destination as Email. And additionally, it will be using Docentric templates as well.

If we observe Email section of Print management, we can define the purpose & also we can define additional Email addresses.


The requirement is to set the email Recipients through code dynamically. I will have the purchase order reference in my controller class. And I need to set the Email defined in one custom field at Purchase order header.

What all changes I need to do in my controller class? Can anyone please provide code snippet?

Thank you in advance.

pastedimage1632468588269v1.png

I have the same question (0)
  • huijij Profile Picture
    19,811 on at

    Hi Rhushikesh,

    Maybe you can refer to the method of closeOk() in the SRSPrintDestinationSettingsForm which handles the close event of print destination settings dialog,

    // print to email settings
        printSettings.emailTo(mailTo.text());
    // Validate print settings are ok.
        printSettings.validate();
    // If the print settings are good set this contract in the report controller contract.
    this.printDestinationSettings().unpack(printSettings.pack());
    
    delegatesHelper.onFormCloseOk(this, this.printDestinationSettings());

  • tristansenk99 Profile Picture
    89 on at

    Hi, did you ever resolve this? I have a similar requirement

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
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 420 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 241 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans