<div dir="ltr">Gentle thread kickup :-) Can anybody here help pls? If I cant get friendly advice from community maybe somebody wanna <br>get some reasonable quantity of coins?<div>Hilfe!</div><div><br></div><div>Regards</div><div>Andrew Smith</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 7, 2014 at 11:09 PM, SIAM Translations <span dir="ltr"><<a href="mailto:info@siam-translations.com" target="_blank">info@siam-translations.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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:<br><b>INSERT INTO</b> table1, (`crmid`, `module`, `relcrmid`, `relmodule`)<br><b>SELECT</b> tiger_crmentity.crmid, 'value1', vtiger_account.accountid, 'value2'<br><b>FROM</b> vtiger_crmentity, vtiger_account, vtiger_custommodule<br><b>WHERE</b> vtiger_account.industry=vtiger_customemodule.industry<br><div><br>The point is how to limit operation to the only current inserted record into custom module, using custom function in  workflows. <br></div><div><br></div><div>Regards</div><div>Andrew Smith</div></div>
</blockquote></div><br></div>