1

I have an email address say [email protected]. I want to know If there is a Salesforce user(need not be in my organization) who has a salesforce account with [email protected] as email. If such a salesforce account exists I would like to add it into my contacts.

Is there a possible way to determine whether a given email address has a Salesforce account using python?

Thanks

2 Answers 2

1

You'd have to be an employee of salesforce.com to be able to look up a user by email address. Developers like myself would have many accounts by the same email (different usernames, of course), but you can't get at this information from the outside. Even trying to create new users by a particular email may yield a false positive or false negative, since they could be inactive and/or use a different email than username.

0

Honestly, I think you would be best off using an anonymous APEX script to accomplish this task.

If you want to use python, you would have to export the data first.

7
  • I have this as a sub-problem of a project in python. So that's why.
    – SasiKiran
    Commented Jun 12, 2015 at 15:22
  • Well, if you are going to use an external program to perform this operation in salesforce, you are going to have to use web-services. I would consider creating this functionality as an APEX class, and then exposing it with the @webservice annotation, which you could then call from your other program using the SOAP api.
    – martin
    Commented Jun 12, 2015 at 15:29
  • I am new to development in salesforce. So can you tell me the logic involved in knowing whether the email address is already a salesforce account or libraries that help in achieving this purpose in apex.
    – SasiKiran
    Commented Jun 12, 2015 at 15:35
  • You would want to do a query on the standard sobject User to retrieve the email field.
    – martin
    Commented Jun 12, 2015 at 15:39
  • 4
    @SasiKiran If you are asking to check other Salesforce orgs (that you don't have access to) for Users and add them as Contacts to your own org, that is not possible.
    – dBeltowski
    Commented Jun 12, 2015 at 15:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .