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 365 | Integration, Dataverse...
Unanswered

eMail Templates Attachments - Using SendEmailFromTemplateRequest Class

(0) ShareShare
ReportReport
Posted on by 55

Hi All,

I was added PDF attachment file to existing email template and call the template from the code using SendEmailFromTemplateRequest class as the following code

                   SendEmailFromTemplateRequest sendEmailreq = new SendEmailFromTemplateRequest

                   {

                       Target = email,

                       TemplateId = emailTemplate.Id,

                       RegardingId = regardingId,

                       RegardingType = entRegardingType,

                   };

                   service.Execute(sendEmailreq);

but the attachement file not sent and checking the activity email from CRM side shows that the email was sent without attached file and the attached part is empty

So should i do something else or is there any missing steps.

Thanks,

I have the same question (0)
  • Community Member Profile Picture
    on at

    Hi partner,

    Have you tried to use the template with PDF attachment to send email directly from crm.

    The result is same with using SendEmailFromTemplateRequest in code?

    Regards,

    Leah Ju

  • moelshimy Profile Picture
    55 on at

    Hi there,

    Yes i tried it directly from CRM and working fine but not working in the code.

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 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 45 Most Valuable Professional

#2
iampranjal Profile Picture

iampranjal 36

#3
Satyam Prakash Profile Picture

Satyam Prakash 31

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans