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

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 April 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 699

#2
André Arnaud de Calavon Profile Picture

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

#3
Subra Profile Picture

Subra 493

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans