<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>