Hi Everyone,
I faced a challenging export/import (not using extension) task in my recent re-engineering process. The following is the scenario:
In the old Account Entity:
(1) There are four fields "Email Address for OP", "Email Address for GL", "Email Address for CL" and "Email Address for IP".
(2) I want to export these fields in a csv file.
(3) This is used for sending email notifications to specific users in a company when our transaction system hits specific transaction types which the company wants to monitor
In the target Transaction Notification entity in the new instance:
(1) The each row is defined with the following fields:
- Email Purpose --> enum ["OP","GL","CL","IP"]
- Email Address --> email address
(2) When I import the exported CSV file i want "explode" the four fields and generate a row for each one of the fields.
The intentions for doing this are:
(1) Avoid exceeding table size limitation when more such item as the added in the accounts entity
(2) Provide user with the flexibility to create their own email addresses for additional purposes.
I am knocking my head against the wall on this. I know this could be done this using PHP external script and Espocrm APIs. But I am trying to keep all such tasks within the confines of Espocrm as integrated package.
Any help would be much appreciated. Thank you in advance.
I faced a challenging export/import (not using extension) task in my recent re-engineering process. The following is the scenario:
In the old Account Entity:
(1) There are four fields "Email Address for OP", "Email Address for GL", "Email Address for CL" and "Email Address for IP".
(2) I want to export these fields in a csv file.
(3) This is used for sending email notifications to specific users in a company when our transaction system hits specific transaction types which the company wants to monitor
In the target Transaction Notification entity in the new instance:
(1) The each row is defined with the following fields:
- Email Purpose --> enum ["OP","GL","CL","IP"]
- Email Address --> email address
(2) When I import the exported CSV file i want "explode" the four fields and generate a row for each one of the fields.
The intentions for doing this are:
(1) Avoid exceeding table size limitation when more such item as the added in the accounts entity
(2) Provide user with the flexibility to create their own email addresses for additional purposes.
I am knocking my head against the wall on this. I know this could be done this using PHP external script and Espocrm APIs. But I am trying to keep all such tasks within the confines of Espocrm as integrated package.
Any help would be much appreciated. Thank you in advance.
Comment