softwaredev999 / mailchimp-shopify-salesforce

Integration of Mailchimp with Shopify and Salesforce
0 stars 0 forks source link

Integration of Mailchimp with Shopify and Salesforce #1

Open softwaredev999 opened 5 months ago

softwaredev999 commented 5 months ago

This issue outlines the steps required to integrate Mailchimp with Shopify and Salesforce, followed by testing the data flow and validating the integration. The integration aims to streamline the customer and audience data synchronization between these platforms to enhance marketing and sales processes.

Outline and Plan:

Part 1: Install and Configure Mailchimp App in Shopify

Objective:

To connect Shopify with Mailchimp to facilitate the synchronization of customer data.

Steps:

Expected Outcome:

Part 2: Install and Configure Mailchimp App in Salesforce

Objective:

To connect Salesforce with Mailchimp to enable the synchronization of audience data.

Steps:

Expected Outcome:

Part 3: Test Shopify -> Mailchimp -> Salesforce Flow

Objective:

To verify the data flow from Shopify to Mailchimp and then to Salesforce.

Steps:

Expected Outcome:

Part 4: Test Mailchimp -> Shopify and Salesforce Flow

Objective:

To verify the data flow from Mailchimp to Shopify and Salesforce.

Steps:

Expected Outcome:

Part 5: In Salesforce, Create a Flow to Automatically Create a Contact and an Account for Each Lead

Part 6: End-to-End Testing and Validation

Objective:

To validate the entire integration process and ensure data integrity and accuracy.

Steps:

Expected Outcome:

Acceptance Criteria:

softwaredev999 commented 5 months ago

Part 1: Install and Configure Mailchimp App in Shopify Screenshots

image

image

image

image

image

image image image image image image

softwaredev999 commented 5 months ago

Part 2: Install and Configure Mailchimp App in Salesforce Screenshots

image image image image

image image

softwaredev999 commented 5 months ago

When I add an audience in Mailchimp, I expect the audience to be synced to Salesforce and then a lead to be created based on the settings. However, the lead is not being created.

softwaredev999 commented 5 months ago

When I add an audience in Mailchimp, I expect the audience to be synced to Salesforce and then a lead to be created based on the settings. However, the lead is not being created.

After deactivating the custom triggers, leads are being created automatically as expected after the members' information is synced from Mailchimp.

softwaredev999 commented 5 months ago

Part 3: Test Shopify -> Mailchimp -> Salesforce Flow Screenshots

image image image image

softwaredev999 commented 5 months ago

What works:

Added a customer in Shopify. The customer's information is automatically synced to Mailchimp. Synced the customer's information to Salesforce after the sync run. Automatically created a lead in Salesforce using the customer's information.

Next step:

In Salesforce, update the field mapping and automatically add a contact using the customer's information.

softwaredev999 commented 5 months ago

I updated the field mapping between Mailchimp and Lead objects. image

I created a record-triggered flow that creates or updates a contact upon the creation or update of a lead. image

softwaredev999 commented 5 months ago

Next step:

Test the flow by creating more leads to ensure the correct data flows to the Contact object.

softwaredev999 commented 2 months ago

I successfully set up the integration between Mailchimp, Salesforce, and Shopify in the HOS sandbox.

What has been done:

Part 1: Install and Configure Mailchimp App in Shopify Part 2: Install and Configure Mailchimp App in Salesforce (Lead creation configuration is not done yet) Part 3: Test Shopify -> Mailchimp -> Salesforce Flow

The integration flow is as follows:

To test:

Please take a look at the screenshots above.

What needs to be done next:

Part 2: Install and Configure Mailchimp App in Salesforce (Configure to create a lead in Salesforce for each audience) Part 5: In Salesforce, Create a Flow to Automatically Create a Contact and an Account for Each Lead Part 6: End-to-End Testing and Validation

Convert the audience data to Lead -> Account -> Contact.

HOS-zz commented 2 months ago

@softwaredev999 Hey Safi, I'm going to dedicate sometime this week. Ideally I won't break anything if I change the store type within Shopify

softwaredev999 commented 2 months ago

@HOS-zz Hey Tim, Please proceed if you need to change the store type. We’ll test the integration afterward. It should be fine, but if there are any issues, I’ll check it out.

HOS-zz commented 2 months ago

Hey @softwaredev999, Did I break it by adding inventory?

https://dbm000003mcatea4-dev-ed.develop.my.salesforce-sites.com/shopifysalesforce/services/apexrest/wk_shopify/inventory_level

image

softwaredev999 commented 2 months ago

@HOS-zz I tested the integration again, and everything worked fine. I’ll check the webhook error.

softwaredev999 commented 2 months ago

@HOS-zz

Part 2: Install and Configure Mailchimp App in Salesforce (Configure to create a lead in Salesforce for each audience)

I partially mapped the fields between Mailchimp and Lead fields. Currently, a lead is created for every audience synced to Salesforce. Work is still in progress.

image image

softwaredev999 commented 1 month ago

@HOS-zz The Mailchimp organization field is mapped to the Lead company field, and it works when a member is first synced with Salesforce. However, if you update the organization name in Mailchimp, it still syncs to Salesforce, but the existing lead doesn't get updated. I might need to write a flow to update the lead when a member is updated in Mailchimp.

softwaredev999 commented 1 month ago

The next step is to work on part 5: creating a flow in Salesforce to automatically create a Contact and an Account for each Lead.

softwaredev999 commented 1 month ago

@HOS-zz In the HOS sandbox, I created a flow that triggers when a lead is created or updated. If the contact exists, it updates the contact;if the contact doesn't exist, it creates a contact using the lead record. I tested the flow and it worked, but I believe more end-to-end testing needs to be completed.

The flow is also supposed to create an account using the lead record, but it seems there is already another flow doing that.

image

The next step is to conduct more end-to-end testing to ensure the flow works and make updates as needed.

softwaredev999 commented 1 month ago

@HOS-zz I worked on part 5: creating a flow in Salesforce to automatically create a Contact and an Account for each Lead.

I updated the flow. Previously, the flow triggered every time a lead was created or updated without any conditions. The updated flow triggers when a lead is created or updated using an email address from the Mailchimp member table.

Details:

Flow name: Create Contact from Mailchimp Audience

image