Jump to content


Photo

X2CRM and Mailchimp Integration [solved]

staff response

  • Please log in to reply
4 replies to this topic

#1 dbastreghi

dbastreghi

    Newbie

  • Members
  • Pip
  • 8 posts
  • LocationBrazil

Posted 16 March 2017 - 07:28 AM

Hi,

 

After many hours trying to integrate X2CRM and Mailchimp, I finally found something that may be usefull. It sends every contact to a Mailchimp list.

 

Follow this steps:

 

1. Ceate a Workflow with the trigger "Record created" to contacts.

 

2. Add the action "Remote API Call" to the flow.

 

 

3. Fill the fields like this:

 

URL: https://[your-mailchimp-server].api.mailchimp.com/3.0/lists/[your-list-id]/members

Method: POST

Use JSON payload? Checked

JSON:

{
    "email_address": "{email}",
    "status": "subscribed",
    "merge_fields": {
        "FNAME": "{firstName}",
        "LNAME": "{lastName}"
    }
}

 

4. Click on "Add Header" and fill it:

 

Name: Authorization

Value: apikey [your-api-key]

 

5. It would be enought to it works. But there is a bug on X2CRM 6.5.2 that replaces the tag {email} with HTML code. So Mailchimp wont recognize it. To fix it, open the file /protected/components/x2flow/actions/X2FlowApiCall.php and add code bellow at line 210:

 

$data = strip_tags(htmlspecialchars_decode($data));

 

- - - - - - -

 

If you know nothing about it, check out this video: https://teamtreehous...rs-to-your-list

 

That's all.



#2 ToanLuong

ToanLuong

    Member

  • Members
  • PipPip
  • 22 posts

Posted 16 March 2017 - 08:00 AM

Thank you for share!

 

Do you know how to integrate Google Form (Goog Sheets) and X2CRM (through Zapier or anything like this)?



#3 X2Raymond

X2Raymond

    Advanced Member

  • Administrators
  • 972 posts
  • LocationSanta Cruz, CA

Posted 16 March 2017 - 02:44 PM

Thank you for sharing your solution with the community! I've also just committed a fix for the issue you reported, thanks again for reporting this one.



#4 dbastreghi

dbastreghi

    Newbie

  • Members
  • Pip
  • 8 posts
  • LocationBrazil

Posted 21 March 2017 - 11:29 AM

Thank you for share!

 

Do you know how to integrate Google Form (Goog Sheets) and X2CRM (through Zapier or anything like this)?

 

Sorry ToanLoung, but I dont know. Good luck.



#5 X2Raymond

X2Raymond

    Advanced Member

  • Administrators
  • 972 posts
  • LocationSanta Cruz, CA

Posted 21 March 2017 - 12:11 PM

Hello ToanLuong,

 

It looks like you should be able to use Google Apps Script to POST the data from your spreadsheet to X2CRM on form submission. Please see these pages on the Google Apps Script docs for more details:

Raymond







Also tagged with one or more of these keywords: staff response

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users