0

I am in the process of using a Post Rest service for Marketing Cloud messaging services, sending a transactional email using Marking Cloud triggered send functionality. I want to add a cc and a bcc parameter but I cannot figure out the proper way to do it. Originally I put the cc and the bcc function in the options sections and added an array to it, however, those users never got their email. Then, I had the same parameter value be a string only filled with 1 email however that also did not work. Does anyone have any ideas?

0

1 Answer 1

6

The CC and BCC fields are tied to the send definition, rather than the actual message send. Therefore a fixed address for every message using that triggered send definition is the case this has been designed for.

In order to do this when setting up the triggered send via the interface, you need to put one or more email addresses in (comma separated). If you don't see the fields "CC Email Address(es)" and "BCC Email Address(es)", follow step 1 of the below instructions.

If you like to configure the send definition via API, just supply the email address or comma separated list in the string properties "BccEmail" and "CCEmail".

However, you can get around this in the following way:

  1. Activate the CC/BCC Option in Setup
    • Go to Setup
    • Search for "Email Optional Features"
    • "Enable" the "BCC Emails" feature
  2. Add a field for CC and BCC address to the triggered send's data extension. (for my example they are named "CCAddress" and "BCCAddress" and are of type "EmailAddress")
  3. Prepare the triggered send:
    • Open the triggered send definition
    • In "Send Options" set "CC Email Address(es)" to the personalization string %%CCAddress%%
    • In "Send Options" set "BCC Email Address(es)" to the personalization string %%BCCAddress%%
  4. Include the CCAddress and BCCAddress in your API call within the SubscriberAttributes (JSON path "To.ContactAttributes.SubscriberAttributes.CCAddress", "To.ContactAttributes.SubscriberAttributes.BCCAddress")

Example request body:

{
    "To": {
        "Address": "[email protected]",
        "SubscriberKey": "yoursubscriberkey",
        "ContactAttributes": {
            "SubscriberAttributes": {
                "BCCAddress": "[email protected]",
                "CCAddress": "[email protected]"
                "OtherDataYouMightNeedForTheSend": "asdf"
            }
        }
    },
    "Options": {
        "RequestType": "SYNC"
    }
}

Related documentation:

3

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .