I am using 2 workflows: one to create a unique Account (if it doesn't exist) from a lead and another to create a unique Contact from that same Lead
The fields Accounts, Account, and Account Title (Accounts is a combination of Account -> Accounts Title)
in Contact are not being filled from that Lead (using the formula below) but other fields like firstName are being filled properly.
Any ideas on how to solve this are highly appreciated.
** In simpler words, I would like the Contact to be created from the Lead and have the Lead's Accounts (Account -> Title) like when you click Convert.
The fields Accounts, Account, and Account Title (Accounts is a combination of Account -> Accounts Title)
in Contact are not being filled from that Lead (using the formula below) but other fields like firstName are being filled properly.
Code:
// This formula creates a Contact if no contact with the same name exists $memberId = record\findOne('Contact', 'createdAt', 'desc', 'name=', name); ifThen( $memberId == null, record\create('Contact', 'name', name, 'accounts', accounts, 'account', accountName, 'title',title) );
** In simpler words, I would like the Contact to be created from the Lead and have the Lead's Accounts (Account -> Title) like when you click Convert.
Comment