<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">You have created a many to many
relation (get_related_list), try with a one to many
(get_dependents_list) and let us know.<br>
<br>
Joe<br>
TSolucio<br>
<br>
<br>
On 05/03/13 09:27, salim wrote:<br>
</div>
<blockquote
cite="mid:CADQpn1bNFkL+YxRWUDLQBjF8tgp43XHStBsMHpL4cj_4SzY7Sg@mail.gmail.com"
type="cite">
<div dir="ltr">Hi All,
<div style=""> I need to create a project <span
style="color:rgb(0,0,0);font-family:'Lucida
Grande',Tahoma,sans-serif;font-size:12px">when a Opportunity
get closed as won. So to accomplish this i am using
workflow. But when i select <b>Create Entity </b> from
workflow task, There is no Project module Listed in the
list, I can see only Comment Module. </span></div>
<div style=""><font color="#000000" face="Lucida Grande, Tahoma,
sans-serif"><span style="font-size:12px"> I think i did
read somewhere that only related module will list in it.
So i related Project module with </span></font><span
style="color:rgb(0,0,0);font-family:'Lucida
Grande',Tahoma,sans-serif;font-size:12px">Opportunity. Now i
can add and select projects in </span><span
style="color:rgb(0,0,0);font-family:'Lucida
Grande',Tahoma,sans-serif;font-size:12px"> to Opportunity,</span><span
style="color:rgb(0,0,0);font-family:'Lucida
Grande',Tahoma,sans-serif;font-size:12px"> But Still i am
not getting Project module in workflow entity type list.</span></div>
<div style=""><span style="color:rgb(0,0,0);font-family:'Lucida
Grande',Tahoma,sans-serif;font-size:12px"><br>
</span></div>
<div style=""><span style="color:rgb(0,0,0);font-family:'Lucida
Grande',Tahoma,sans-serif;font-size:12px">This was the code
that i used to relate project module:</span></div>
<div style=""><span style="color:rgb(0,0,0);font-family:'Lucida
Grande',Tahoma,sans-serif;font-size:12px"><br>
</span></div>
<div style="">
<div><font color="#000000" face="courier new, monospace"><span
style="font-size:12px"><?php</span></font></div>
<div><font color="#000000" face="courier new, monospace"><span
style="font-size:12px">$Vtiger_Utils_Log = true;</span></font></div>
<div><font color="#000000" face="courier new, monospace"><span
style="font-size:12px">include_once('vtlib/Vtiger/Module.php');</span></font></div>
<div><font color="#000000" face="courier new, monospace"><span
style="font-size:12px">$srcModule =
Vtiger_Module::getInstance('Potentials');</span></font></div>
<div><font color="#000000" face="courier new, monospace"><span
style="font-size:12px">$projectModule =
Vtiger_Module::getInstance('Project');</span></font></div>
<div><font color="#000000" face="courier new, monospace"><span
style="font-size:12px">$projectLabel = 'Projects';</span></font></div>
<div><font color="#000000" face="courier new, monospace"><span
style="font-size:12px">$srcModule->setRelatedList(</span></font></div>
<div><font color="#000000" face="courier new, monospace"><span
style="font-size:12px"> $projectModule,
$projectLabel, Array('ADD', 'SELECT')</span></font></div>
<div><font color="#000000" face="courier new, monospace"><span
style="font-size:12px">);</span></font></div>
<div><font color="#000000" face="courier new, monospace"><span
style="font-size:12px">?></span></font></div>
<div><span
style="font-size:12px;color:rgb(0,0,0);font-family:arial,helvetica,sans-serif"><br>
</span></div>
<div>
<span
style="font-size:12px;color:rgb(0,0,0);font-family:arial,helvetica,sans-serif"> What
should i have to do to get this work?.</span><br>
</div>
<div style=""><font color="#000000" face="arial, helvetica,
sans-serif"><span style="font-size:12px"><br>
</span></font></div>
<div style=""><font color="#000000" face="arial, helvetica,
sans-serif"><span style="font-size:12px">Thanks</span></font><br>
</div>
<div style=""><font color="#000000" face="arial, helvetica,
sans-serif"><span style="font-size:12px">--</span></font></div>
<div style=""><font color="#000000" face="arial, helvetica,
sans-serif"><span style="font-size:12px">Salim</span></font></div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
<a class="moz-txt-link-freetext" href="http://www.vtiger.com/">http://www.vtiger.com/</a></pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Un saludo
Joe
TSolucio</pre>
</body>
</html>