Gigya Job Openings

Mailchimp Dataflow - Outbound

Skip to end of metadata
Go to start of metadata

The dataflow that loads data from Gigya to Mailchimp includes field renaming, removing the profile and data fields, and loading into Mailchimp. Note the newsletterField in the last step, which indicates the newsletter subscription status. In each record there must be a field of this name with a true/false value (case-insensitive). The various dataflow steps are described in greater detail in the Component Repository

Following is a code sample of a full dataflow for passing data from Gigya to Mailchimp: 

 

{
    "name": "Mailchimp - Outbound",
    "description": "account > rename > remove > mailchimp",
    "steps": [{
            "id": "account",
            "type": "datasource.read.gigya.account",
            "params": {
                "select": "UID,profile.email,data.languages,data.subscribed"
            },
            "next": ["rename"]
        }, {
            "id": "rename",
            "type": "field.rename",
            "params": {
                "fields": [{
                        "sourceField": "profile.email",
                        "targetField": "EMAIL"
                    },{
                        "sourceField": "data.languages",
                        "targetField": "languages"
                    },{
                        "sourceField": "data.subscribed",
                        "targetField": "newsletterField"
                    }
                ]
            },
            "next": ["field.evaluate"]
        }, {
            "id": "field.evaluate",
            "type": "field.evaluate",
            "params": {
                "fields": [{
                        "field": "english",
                        "expression": "\"english\" =~languages"
                    }, {
                        "field": "spanish",
                        "expression": "\"spanish\" =~languages"
                    }, {
                        "field": "hebrew",
                        "expression": "\"hebrew\" =~languages"
                    }
                ],
                "language": "jexl"
            },
            "next": ["field.remove"]
        }, {
            "id": "field.remove",
            "type": "field.remove",
            "params": {
                "fields": ["languages"]
            },
            "next": ["mailchimp"]
        }, {
            "id": "mailchimp",
            "type": "datasource.write.mailchimp",
            "params": {
                "apiUrl": "...",
                "apiKey": "...",
                "listId": "...",
                "newsletterField": "newsletterField",
                "interestsMapping": [{
                        "sourceField": "hebrew",
                        "interestId": "[***]"
                    }, {
                        "sourceField": "english",
                        "interestId": "[***]"
                    }, {
                        "sourceField": "spanish",
                        "interestId": "[***]"
                    }
                ]
            }
        }
    ]
}

The license could not be verified: License Certificate has expired!

 

 

  • No labels