<div dir="ltr">Thanks Alan, that's very helpful.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Mar 20, 2014 at 5:56 PM, Alan Lord <span dir="ltr"><<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 20/03/14 05:47, Max Clarke wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In the meantime I'll use a similar workaround as you've stated<br>
above: create a workflow to assign the ticket contact's organisation<br>
to the related_to field on ticket creation.<br>
<br>
<br>
It seems this won't work, as you can't update the ticket's parent /<br>
related_to using workflows.<br>
</blockquote>
<br></div>
You can, but you'll have to write a custom workflow function[1].<br>
<br>
We do this all the time to update fields from/to indirectly related modules.<br>
<br>
Here's a simple workflow function that updates fields in a related module:<br>
<br>
<a href="http://paste.ubuntu.com/7124056/" target="_blank">http://paste.ubuntu.com/<u></u>7124056/</a><br>
<br>
And this is the how you register the function so when you create your workflow you select "Invoke Custom Function" option when creating a new Task and you will see the name 'Calculate Quote' in the picklist.<br>
<br>
<a href="http://paste.ubuntu.com/7124063/" target="_blank">http://paste.ubuntu.com/<u></u>7124063/</a><br>
<br>
HTH<br>
<br>
Al<br>
<br>
<br>
[1] <a href="https://wiki.vtiger.com/index.php/Invoke_Custom_Function" target="_blank">https://wiki.vtiger.com/index.<u></u>php/Invoke_Custom_Function</a><br>
<br>
______________________________<u></u>_________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br>
</blockquote></div><br></div>