[Vtigercrm-developers] Add related list records

SIAM Translations info at siam-translations.com
Tue Oct 7 16:09:42 GMT 2014


I looking for the way to be able to add automatically set of chosen records
to the related list. It should trigger on record creation in parent
(custom) module, but after identification of value from picklist. Up to
value in picklist (should be the same in parent and related table) related
records will  be selected and added to the related list. In sql I can use
kind of:
*INSERT INTO* table1, (`crmid`, `module`, `relcrmid`, `relmodule`)
*SELECT* tiger_crmentity.crmid, 'value1', vtiger_account.accountid, 'value2'
*FROM* vtiger_crmentity, vtiger_account, vtiger_custommodule
*WHERE* vtiger_account.industry=vtiger_customemodule.industry

The point is how to limit operation to the only current inserted record
into custom module, using custom function in  workflows.

Regards
Andrew Smith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20141007/d77f9d17/attachment.html>


More information about the vtigercrm-developers mailing list