# Mautic Sugar/Suite Contacts Integration Issue

**URL:** https://forum.mautic.org/t/mautic-sugar-suite-contacts-integration-issue/9972
**Category:** Product Support
**Created:** [November 24, 2017, 5:28am UTC](https://forum.mautic.org/t/mautic-sugar-suite-contacts-integration-issue/9972 "2017-11-24T05:28:10Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![npracht](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/npracht/32/240_2.png) [@npracht](https://forum.mautic.org/u/npracht)
#### Post date: [November 24, 2017, 5:28am UTC](https://forum.mautic.org/t/mautic-sugar-suite-contacts-integration-issue/9972/1 "2017-11-24T05:28:10Z")

</div>

I am facing issue while importing contacts from SuiteCRM to Mautic:  
  
Enabled features  
  
1- Triggered action push contacts to integration Checked  
  
2- Pull contacts from integration Checked  
  
3- Push contacts to this integration Checked  
  
  
  
Choose SugarCRM objects to pull contacts from  
  
1- Leads Checked  
  
2- Contacts Checked  
  
3- Accounts Checked  
  
  
  
So when I run cron job like:  
  
php console mautic:integration:fetchleads --fetch-all --integration=Sugarcrm  
  
  
  
it return me this result

* * *
Command to fetch contacts from integration  
Fetch contacts command is starting  
PHP Notice: Undefined variable: RECORDS\_LIST\_NAME in /var/www/html/mautic/plugins/MauticCrmBundle/Integration/SugarcrmIntegration.php on line 724  
  
0 contacts were updated and 0 contacts were created  
  
Fetching companies  
Fetch companies command is starting  
  
0 companies were updated and 0 companies were created  

* * *
  
So what I am doing wrong that contacts are not importing into Mautic?

---

<div class="post-metadata">

### Author: ![npracht](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/npracht/32/240_2.png) [@npracht](https://forum.mautic.org/u/npracht)
#### Post date: [November 24, 2017, 5:28am UTC](https://forum.mautic.org/t/mautic-sugar-suite-contacts-integration-issue/9972/2 "2017-11-24T05:28:10Z")

</div>

I am facing issue while importing contacts from SuiteCRM to Mautic:  
Enabled features  
1- Triggered action push contacts to integration Checked  
2- Pull contacts from integration Checked  
3- Push contacts to this integration Checked

Choose SugarCRM objects to pull contacts from  
1- Leads Checked  
2- Contacts Checked  
3- Accounts Checked

So when I run cron job like:  
php console mautic:integration:fetchleads --fetch-all --integration=Sugarcrm

## it return me this result

Command to fetch contacts from integration  
Fetch contacts command is starting  
PHP Notice: Undefined variable: RECORDS\_LIST\_NAME in /var/www/html/mautic/plugins/MauticCrmBundle/Integration/SugarcrmIntegration.php on line 724

0 contacts were updated and 0 contacts were created

Fetching companies  
Fetch companies command is starting

0 companies were updated and 0 companies were created

* * *

So what I am doing wrong that contacts are not importing into Mautic?

---

<div class="post-metadata">

### Author: ![npracht](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/npracht/32/240_2.png) [@npracht](https://forum.mautic.org/u/npracht)
#### Post date: [November 24, 2017, 5:28am UTC](https://forum.mautic.org/t/mautic-sugar-suite-contacts-integration-issue/9972/3 "2017-11-24T05:28:44Z")

</div>

I have fixed this issue by following this link:

[https://github.com/mautic/mautic/pull/5244/files/cf916b6504b6a17702005922370f989c51f40b81](https://github.com/mautic/mautic/pull/5244/files/cf916b6504b6a17702005922370f989c51f40b81)

Thank You.

---

<div class="post-metadata">

### Author: ![npracht](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/npracht/32/240_2.png) [@npracht](https://forum.mautic.org/u/npracht)
#### Post date: [November 24, 2017, 6:54am UTC](https://forum.mautic.org/t/mautic-sugar-suite-contacts-integration-issue/9972/4 "2017-11-24T06:54:19Z")

</div>

Hi,

SuiteCRM has been integrated successfully. Now Contacts, Leads and Accounts from SuiteCRM are successfully importing into Mautic.

Now the issue is only newly created/updated records importing into Mautic. I am using this cron job to fetch Leads/Contacts/Accounts:

mautic:integration:fetchleads --fetch-all --integration=Sugarcrm

so if I want to pull all existing contacts into Mautic then what should I do? If anyone knows then help me out.

Thank You,

---

<div class="post-metadata">

### Author: ![infohound](https://avatars.discourse-cdn.com/v4/letter/i/8baadc/32.png) [@infohound](https://forum.mautic.org/u/infohound)
#### Post date: [December 8, 2017, 12:45am UTC](https://forum.mautic.org/t/mautic-sugar-suite-contacts-integration-issue/9972/5 "2017-12-08T00:45:02Z")

</div>

[quote=27214:@pt\_awais]I have fixed this issue by following this link:

[https://github.com/mautic/mautic/pull/5244/files/cf916b6504b6a17702005922370f989c51f40b81](https://github.com/mautic/mautic/pull/5244/files/cf916b6504b6a17702005922370f989c51f40b81)

Thank You.[/quote]  
Thanks for posting that link. I was finally able to get contacts to sync once implementing the code in that pull request.

@pt\_awais When your contacts are synced from SugarCRM into Mautic are they showing the Company/Account Name? Everything is now pulling over for me except that the Company field in Mautic is blank and not populating with the Account Name value from SugarCRM. I have checked the mappings again and again but can’t seem to get this to work. Please let me know if it is working for you. Thanks in advance.
