[Vtigercrm-developers] Create entity task in Workflow

Joe Bordes joe at tsolucio.com
Tue Mar 5 00:44:58 PST 2013


You have created a many to many relation (get_related_list), try with a 
one to many (get_dependents_list) and let us know.

Joe
TSolucio


On 05/03/13 09:27, salim wrote:
> Hi All,
>     I need to create a project when a Opportunity get closed as won. 
> So to accomplish this i am using workflow. But when i select *Create 
> Entity * from workflow task, There is no Project module Listed in the 
> list, I can see only Comment Module.
>    I think i did read somewhere that only related module will list in 
> it. So i related Project module with Opportunity. Now i can add and 
> select projects in  to Opportunity, But Still i am not getting Project 
> module in workflow entity type list.
>
> This was the code that i used to relate  project module:
>
> <?php
> $Vtiger_Utils_Log = true;
> include_once('vtlib/Vtiger/Module.php');
> $srcModule = Vtiger_Module::getInstance('Potentials');
> $projectModule = Vtiger_Module::getInstance('Project');
> $projectLabel = 'Projects';
> $srcModule->setRelatedList(
>         $projectModule, $projectLabel, Array('ADD', 'SELECT')
> );
> ?>
>
>  What should i have to do to get this work?.
>
> Thanks
> --
> Salim
>
>
> _______________________________________________
> http://www.vtiger.com/


-- 
Un saludo
Joe
TSolucio

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20130305/01ccc562/attachment.html 


More information about the vtigercrm-developers mailing list