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 :
Microsoft Dynamics CRM (Archived)

How to embed SSRS report content in Email body (MS CRM 2016 Online)

(0) ShareShare
ReportReport
Posted on by

HI All,

I am having a requirement to send mail to customer with a report attached in PDF format and same report content need to be copied in Mail body too.

Retrieving report and attaching as attached i have done. Need suggestion ow to embed report content in mail body.

Working on MS CRM Online version.

Any Inputs would be appreciated.


Regards,
Kamran

*This post is locked for comments

I have the same question (0)
  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    What you can try is to render report as HTML and inject retrieved HTML to email body.

  • Community Member Profile Picture
    on at

    Hi Andri .

    Thanks for inputs.

    From JS I am am able to get response by building report for MHTML format : ContentDisposition=OnlyHtmlInline&Format=MHTML

    Response Type is in : arraybuffer

    Here can you help now how to render this array buffer in HTML format.

    For converting Report response in Binayformat i am doing like this:

    BinaryArray: function(buffer) {

               var binary = '';

               var bytes = new Uint8Array(buffer);

               var len = bytes.byteLength;

               for (var i = 0; i < len; i++) {

                   binary += String.fromCharCode(bytes[i]);

               }

               return window.btoa(binary);

           },

    Need suggestion how to convert report response in HTML format

    Regards,

    Kamran

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Fairly it was just a suggestion that you used. I have never tried that before so good luck in transformation.

  • Community Member Profile Picture
    on at

    Any suggestions..

  • a33ik Profile Picture
    84,331 Most Valuable Professional on at

    To suggestions posted in previous replies I can add only one (sorry for so obvious suggestion) - open VS and try to do something.

  • Community Member Profile Picture
    on at

    Andrii,

    Good point for telling to Open VS.

    I think i have opened VS & Notepadd++ and working on same and came up with query above. It will be fair if  u can touch base on query.

    Reasonably i would appreciate solution oriented point sharing

    Regards,

    Kamran

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 > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans