AnsweredAssumed Answered

How to change Global Team to Custom Team

Question asked by Offshore Evolution on Mar 16, 2017
Latest reply on Mar 16, 2017 by Ajay Kumar

Hello,

Sugar 7

I need to update team when lead converted team "Global Team" to "Custom Team". I have write logic hook before save.

 

function fnConvertedLead($bean, $event, $arguments)
    {
        if($bean->status == 'Converted' && ($bean->fetched_row['status'] != $bean->status))
        {
            ## Global Team to Custom Team
            if($bean->team_id == '1')
            {
                ##Global Converted 46c2a3cb-5041-e453-ac70-58cb653a8fa9
                $bean->team_id = '46c2a3cb-5041-e453-ac70-58cb653a8fa9';
            }
           
        }
    }

 

But it display both Global and Custom Team.

I need to display only Custom Team and remove Global Team.

 

 

Thanks

Offshore Evolution Pvt Ltd

Outcomes