Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Service | Customer Service, Contact Center, Fie...
Suggested answer

set cc field when sending an email

(0) ShareShare
ReportReport
Posted on by

I want to automatically populate the cc field when sending an email.

How do I do this if the cc field coming from an incoming email is not an existing contact?

Please help.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: set cc field when sending an email

    Hi cam64,

    Firstly, you need go Settings > Administration > System Settings, under Email tab, then simply flip the switch on ‘Allow messages with unresolved email recipients to be sent’ to Yes .

    pastedimage1633329319839v1.png

    Then you can refer following links to populate cc filed automatically through js or flow:

    Microsoft Dynamics 365: Set Unresolved Email Id's in party List from Java Script (mscrmbi.blogspot.com)

    Tip #1198: Add email address to recipients in javascript | Power Platform & Dynamics CRM Tip Of The Day

    Send Email to Unresolved Recipients in Dynamics 365 using Power Automate (linnzawwin.blogspot.com)

    If they all don't work, you can create one contact for the unresolved email address, then using following code to populate cc field:

    function UpdateBccField(executionContext) {
    
        var formContext = executionContext.getFormContext();
    
            var value = new Array();
            value[0] = new Object();
            value[0].id = "4e720040-c9a1-eb11-b1ac-0022480459c9";//guid of contact
            value[0].name = "Jim Glynn (sample)";//name of contact
            value[0].entityType = "contact"; 
    
            formContext.getAttribute("cc").setValue(value); //set the cc value finally
        }
    }

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Service | Customer Service, Contact Center, Field Service, Guides

#1
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 51 Most Valuable Professional

#2
Ramesh Kumar Profile Picture

Ramesh Kumar 42

#3
David Shaw_UK Profile Picture

David Shaw_UK 27

Featured topics

Product updates

Dynamics 365 release plans