Skip to main content

Notifications

Dynamics 365 Community / Forums / Finance forum / Send multiple recipien...
Finance forum
Under review by Community Managers

Under review

Thank you for your post! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Send multiple recipients email using X++

Posted on by 22
Hi experts,
 
I am working on email template and I wants to send multiple email to recipients.
I tried following code but this sending email to first person only and doesn't consider the 2nd and 3rd email id's.
 
Kindly advise so that I can send email to more then one recipients.
 
Current code:
class RetailOENInfo_PikupConfirmation   extends RetailOENInfo
{
 
...
....
            str customerPickupEmail;

            customerPickupEmail = salesOrder.Email + ';' + 'TestEmail@domain.com' + ';' + 'TestEmail2@domain.com'
           
            parameterMap.insert(#CustomerName, salesOrder.SalesName);
            parameterMap.insert(#CustomerEmail, customerPickupEmail);
 
}
 
I tried to test email from email parameter but when I am putting two email id's, that's throwing following error message:
 

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans