I'm developing a C# application and using Salesforce Partner Soap Api in it. At some point, I need to create a lead from the application(By sending FirstName, LastName, Email, Status fields) which I achieve using SObject and create the method of SForceService which in turn returns me the lead Id and I save it in the db.
After some point they're going to create a contact with the info I sent for lead creation and also assign an Account to it.
Here I need to develop a scheduled job to query and get some information from the Account entity of Salesforce.
Each account in Salesforce has an account number which I don't have it my db, but technically I should be able to query for the contact using the Email and get the account assigned to that contact. This would work only if Emails are enforced to be unique for contacts in Salesforce and each contact can only have one Account assigned to it(Otherwise I wouldn't know which account's info I should fetch).
So my questions are :
- Are Email addresses enforced to be unique for Contact Entity in Salesforce?
- Is it possible for a contact to have multiple accounts assigned to it?
Thank you in advance,