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 :
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.

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

    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

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 > Service | Customer Service, Contact Center, Field Service, Guides

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 55 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 27 Most Valuable Professional

#3
Soundari Profile Picture

Soundari 15

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans