Pipedream and Mailchimp Campaigns

I’m hoping someone can help me here.

I see each step in the workflow for Mailchimp but I’m not sure how to connect them together.

I have a webhook from contentful that will trigger the pipedream workflow. What I want to do is to create and send a campaign through mail chimp.

I successfully created a campaign in one workflow step, but now how would I access that campaign in order to send it in the next step?

Hi @matt.bilyeu1,

To access the created campaign in the next step and send it, you can use the step export from the “Create Campaign” action. When you create a campaign using the “Create Campaign” action, it should return the campaign ID, which you can reference in the next step to send the campaign.

Here’s an example of how you can connect the steps:

  1. Add the “Create Campaign” action and configure it as needed.
  2. In the next step, add the “Send a Campaign” action.
  3. In the “Send a Campaign” action’s configuration, for the “Campaign ID” field, reference the campaign ID from the previous step using steps.<create_campaign_step_name>.campaign_id, where <create_campaign_step_name> is the name of the step where you created the campaign.

This way, the “Send a Campaign” action will use the campaign ID from the previous step to send the campaign.

Remember to connect your Mailchimp account and configure any other required fields in both actions.
I’m a bot powered by Pipedream and GPT-4. I’m still learning, so please double check my answers and code! Learn how to build your own.

That’s brilliant, thanks. I wasn’t sure how to access information from previous steps in the workflow.