AnsweredAssumed Answered

Find if lead exists using primary or secondary email address - REST v10 Sugar 7.5

Question asked by Ren Ren on Jun 4, 2015
Latest reply on Mar 11, 2016 by
I am currently trying to write a PHP script that will find whether or not a lead exists in Sugar using the REST API.

The search is working fine for leads where the email I search for is a primary email address. However, quite a few of our leads use multiple addresses so I need to get it working in those cases also.

I have tried a few approaches but all to no avail. 

  • Tried using the search function with the email address as a query e.g. /search/?

  • Tried using a filter on the Leads module e.g. /Leads/?filter[0][email_addresses.email_address]
Would really appreciate some help :P