AnsweredAssumed Answered

unable to update lead fields using bean.

Question asked by pavan agrawal on Jul 1, 2016
Latest reply on Jul 1, 2016 by Hiren Darji

Hi,

 

When i want to update a field using bean for Lead module, its not showing any data. Updating field using API.

$bean = BeanFactory::getBean('Leads','79e0284f-584c-e21e-fbe8-5772605221b2');

$bean->campaign_id = $campaign_id;

$bean->save();

 

when i checked last query it has team_memberships.user_id = ''  empty field.

(select tst.team_set_id from team_sets_teams tst INNER JOIN team_memberships team_memberships ON tst.team_id = team_memberships.team_id AND team_memberships.user_id = '' AND team_memberships.deleted = 0) LIMIT 0,1

 

if i remove this condition they row count is 1.

 

how to solve this?

Outcomes