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

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

These are the community rock stars!

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

#1
FSRon Profile Picture

FSRon 23

#2
James White Profile Picture

James White 21

#3
AT-28040446-0 Profile Picture

AT-28040446-0 18

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans