Skip to content

mailchimp-integration-trigger not using correct lists #1

@gdowmont

Description

@gdowmont

The trigger for mailchimp currently uses:

    local jobType = p.input:getJobType():toString()
    local mailChimpList
    if(jobType == "CREATE_SERVER") then
        mailChimpList = "MAILCHIMP_SERVER_LIST"
    elseif (jobType == "CREATE_CUSTOMER") then
        mailChimpList = "MAILCHIMP_CUSTOMER_LIST"
    elseif (jobType == "CREATE_DEPLOYMENT_INSTANCE") then
        mailChimpList = "MAILCHIMP_BENTOBOX_LIST"
    else
        return { exitState = "SUCCESS" }
    end

to select which list the email should be added to. However the documentation specifies that "MAILCHIMP_LIST_ID" key name should be used which does not match the code.

I can either modify the code to use a single list with "MAILCHIMP_LIST_ID" or modify the docs to note that multiple keys are supported.

Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions