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

How to fetch a particular email template and send email using x+

(0) ShareShare
ReportReport
Posted on by

Hello everyone , 

I am working on Email sender using x++..

I will give a button on SalesQuotationTable form as Send Email, i need to have some header fields as well as some line fields ...

On its clicked i will write my code ..

My requirement is that when i will click on this send email button a dialog will open which will have a field of whom to send the email and we can send it to multiple email id's ...

Now how will i get the particular template which i have created using HTML..??????????????

Second thing i need to enter Email manuallly in the dialog field , dont want to pick from some field ..., How will i get those email or emails in the code ??????

Please suggest me the code ...

It will be very thankful ,......

I have the same question (0)
  • Verified answer
    Sukrut Parab Profile Picture
    71,710 Moderator on at

    Take a look at below link see how you can fetch it and use it  to send email.

    elandax.blogspot.com/.../how-to-send-email-email-template.html

  • Community Member Profile Picture
    on at

    hello Sukrut ,

                      Thank you for this link ... It worked very well ..

    i am facing one issue like if i am sending my lines , only second line of po is sent ..

    why is this happening any idea ??

  • Sukrut Parab Profile Picture
    71,710 Moderator on at

    I don't have visibility to your code  so cant help much over there but check  how you are inserting values in the place holders.  May be always last value is inserted ?

  • Community Member Profile Picture
    on at

    Now all lines are getting inserting but the issue is they are getting inserted in single row of html table only , each line of PO must be inserted in saperate row in html dynamic table ..

    How to achieve that please help i am not getting any clue over this...

  • Subramani94  Profile Picture
    15 on at

    Can you please tell me how you achieved below?

    each line of PO must be inserted in separate row in html dynamic table ..

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
Martin Dráb Profile Picture

Martin Dráb 551 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans