Importing Multiple Email Addresses and Phone Numbers
Collapse
X
-
Hi, I add the php code but still not export the second phone number. Espocrm v. 7.1.9Leave a comment:
-
Hi there, any news regarding the possibility to import multiple e-mail addresses?
We (Advanced Pack User) would really need this.Leave a comment:
-
same problem here. I need to import different email address. Similar to the phone feature. Is that possible?Leave a comment:
-
-
They must be in separate columns. Did you try to map specific phone type for columns?
Phone (Office), Phone (Mobile)Leave a comment:
-
Thanks. I understand now how to do the multiple phone number imports and will attempt to customize the code for the exports. What is the file path to the Record service of each entity where the additional code should go -- for example Accounts? How difficult would it be to add multiple email importing capability? For example, mapping to emailPrimary and emailSecondary categories, so you could import a primary and a secondary email address for a given entity. Thanks again.Last edited by SpeedBullet; 05-26-2016, 03:28 PM.Leave a comment:
-
You can create service in custom dir custom/Espo/Custom/Services/Account.php
Leave a comment:
-
Thanks. I understand now how to do the multiple phone number imports and will attempt to customize the code for the exports. What is the file path to the Record service of each entity where the additional code should go -- for example Accounts? How difficult would it be to add multiple email importing capability? For example, mapping to emailPrimary and emailSecondary categories, so you could import a primary and a secondary email address for a given entity. Thanks again.Leave a comment:
-
Importing mulitple Phone numbers is already implemented. Exporting phone numbers can achieved with easy customization in Record service of needed entity.
PHP Code:
protected $exportAdditionalFieldList = ['phoneNumberOffice'];
public function loadAdditionalFieldsForExport(\Espo\ORM\Entity $entity)
{
parent::loadAdditionalFieldsForExport($entity);
$this->loadPhoneNumberField($entity);
}
protected function getFieldPhoneNumberOfficeFromEntityForExport(\Espo\ORM\Entity $entity)
{
$phoneNumberData = $entity->get('phoneNumberData');
foreach ($phoneNumberData as $d) {
if ($d->type == 'Office') {
return $d->phoneNumber;
}
}
return '';
}
Leave a comment:
-
Importing Multiple Email Addresses and Phone Numbers
Please consider adding the capability to import and export multiple email addresses and phone numbers for a single account, contact, and/or lead. For example, importing accounts data from an uploaded csv file containing primary / secondary email addresses and office / mobile numbers for a particular account. I've tried to do this using the ["content1","content2","content3"] method recommended for importing to multiple enum fields, but that method doesn't seem to work for multiple email address or phone number fields.
Thanks.
Leave a comment: