[Vtigercrm-developers] Create entity task in Workflow
salim
salim at posibolt.com
Tue Mar 5 00:27:05 PST 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20130305/51b15d43/attachment.html
More information about the vtigercrm-developers
mailing list