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

Email resources from a list

(0) ShareShare
ReportReport
Posted on by

HI,

I have concatenated few email ids in a string field. Say field Concat_email has a value "A@abc.com;b@abc.com;c@abc.com"  . I need to send email to these 3 resources but I am unable to add this to "To" field in email. How do I achieve this using a work flow or a Java script?

I need to email multiple resources how do I achieve it?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Rawish Kumar Profile Picture
    13,758 on at

    Hi Jogender,

    by any chance did you try below?

    stackoverflow.com/.../ms-crm-email-multiple-recipients-throught-webservice

  • Community Member Profile Picture
    on at

    Thanks Rawish,

    But I want the To field to be populated with my Concat email field

  • Suggested answer
    Radu Chiribelea Profile Picture
    6,667 on at

    Hi Jogendar,

    Can you try to create the contacts first (based on the email addresses) ? Afterwards retrieve the contacts and build the ActivityParty array - similar to the sample code from : msdn.microsoft.com/.../hh210217.aspx

                // Create the 'To:' activity party for the email
                ActivityParty toParty = new ActivityParty
                {
                    PartyId = new EntityReference(Contact.EntityLogicalName, _contactId)
                };
                Console.WriteLine("Created activity parties.");
    
                // Create an e-mail message.
                Email email = new Email
                {
                    To = new ActivityParty[] { toParty },
                    From = new ActivityParty[] { fromParty },
                    Subject = "SDK Sample e-mail",
                    Description = "SDK Sample for SendEmail Message.",
                    DirectionCode = true
                };

    Above sample code can be used in a plug-in or a workflow assembly.

    Regards,
    Radu

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 March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans