<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="">&nbsp; &nbsp; 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>&nbsp;from
            workflow task, There is no Project module Listed in the
            list, I can see only Comment Module.&nbsp;</span></div>
        <div style=""><font color="#000000" face="Lucida Grande, Tahoma,
            sans-serif"><span style="font-size:12px">&nbsp; &nbsp;I think i did
              read&nbsp;somewhere&nbsp;that only related module will list in it.
              So i related Project module with&nbsp;</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&nbsp;</span><span
            style="color:rgb(0,0,0);font-family:'Lucida
            Grande',Tahoma,sans-serif;font-size:12px">&nbsp;to&nbsp;Opportunity,</span><span
            style="color:rgb(0,0,0);font-family:'Lucida
            Grande',Tahoma,sans-serif;font-size:12px">&nbsp;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 &nbsp;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">&lt;?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-&gt;setRelatedList(</span></font></div>
          <div><font color="#000000" face="courier new, monospace"><span
                style="font-size:12px">&nbsp; &nbsp; &nbsp; &nbsp; $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">?&gt;</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">&nbsp;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>