Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
Found the answer to Question 2:
I simply needed to add the phone field mapping into the Web.Config:
<crmConnector current="SalesForce" cacheTime="0">
<crms>
<add name="SalesForce" userName="#####" password="####" interfaceUrl="####" timeout="30000">
<entities>
...
<add name="Contact" crmName="Contact" idAttribute="Id">
<attributes>
...
<add name="Phone" crmName="Phone" />
Hello Morgan,
There is an Id property for all entities, representing an idnetity of the entity in SalesForce:
ContactAccountId.Text = account == null ? Factory.CreateAccount(accountSetters) : account.Id;
If you need a value of property named "AccoundID", than you can use something like this:
ContactAccountId.Text = account == null ? Factory.CreateAccount(accountSetters) : account["AccountID"];
Hello,
I'm currently working on saving contact information into SalesForce, but I'm encountering two seperate issues. The first, is simply that there doesn't seem to be any way to get the AccountId [to pass to the contact] from the LoadAccountsByName function without piping it through the crm's AccountList dropdown.
Secondly, only a couple of the contact fields appear to be functioning. In particular, I can't seem to get any phone numbers to save [using the following as a CRMFieldName lookup: http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_contact.htm ]
The following is a stripped down version of the code I pulled from the crm template example with Alloy tech. This is completely working, except for the issues stated above. If I remove the ValidatedTextBox with the Phone crmfiledname, everything runs fine. Otherwise, it will throw an object ref not set error:
C# Click Event:
So;
Question 1: Is there any way to get the AccountID from an existing account through looking up its name?:
Question 2: Is there some other way or field I need to use in order to save the phone number into the contact info? [AssistantPhone, MobilePhone, HomePhone, etc. all throw similar errors.]