Page History

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For an in-depth explanation of each step, see Script Repository

Note
See
  • The IdentitySync integration with Campaign Monitor
documentation for:
  • does not include support for multi-client installations, segments, campaigns and accounts.
  • To meet Campaign Monitor's anti-spam policy, you must have explicit permission to email the contacts you're importing. For more information, see the Campaign Monitor terms of use.
  • See Campaign Monitor documentation on getting a list ID.
  • The Campaign Monitor date field indicates a data only, and does not include a timestamp for hours/minutes/seconds. See Unsubscribed API documentation.
Code Block
languagejs
linenumberstrue
 {
      "name": "Campaign monitor - inbound",
      "description": "Campaign monitor > rename > evaluate > account",
      "steps": [
        {
          "id": "campaignmonitor",
          "type": "datasource.read.campaignmonitor",
          "params": {
            "apiKey": "...",
            "listId": "...",
            "status": "unsubscribed",
            "targetField": "data.subscribed"
          },
          "next": [
            "rename"
          ]
        },
        {
          "id": "rename",
          "type": "field.rename",
          "params": {
            "fields": [
              {
                "sourceField": "GigyaUID",
                "targetField": "UID"
              },
              {
                "sourceField": "Name",
                "targetField": "profile.firstName"
              },
              {
                "sourceField": "EmailAddress",
                "targetField": "profile.email"
              }       
            ]
          },
          "next": [
            "evaluate"
          ]
        },
        {
          "id": "evaluate",
          "type": "field.evaluate",
          "params": {
            "language": "jexl",
            "fields": [
              {
                "field": "data.subscribed",
                "expression": "data_subscribed eq 'unsubscribed' ? 'false' : 'true'"
              }
            ]
          },
          "next": [
            "account"
          ]
        },
        {
          "id": "account",
          "type": "datasource.write.gigya.account"
        }
      ]
    }

...