S4S Code Examples
There are three ways to learn how to code against S4S and Salesforce:
- Following the simple examples in this help documentation.
- Browse the source libraries in the S4S Starter Kit.
- Install the Starter Kit and set breakpoints or step through the functionality in Visual Studio.
Please see the following sections for more details:
- Establishing a Salesforce Session
- Create a New Account
- Create a new Person Account
- Update an Existing Account
- Query and Update a Person Account
- Delete an Existing Account
- Search for an Account by Name
- Searching Salesforce Records
- Finding a Contact by Email Address
- Retrieving a Specific Salesforce Entity
- Accessing Custom Objects and Custom Fields
- Master-Child Child-to-Parent Query Example
- Authenticating Against Contacts and Leads
- Upload Files to Salesforce Documents
- Download Files from Salesforce Attachments
- Retrieving Picklist Values
- Handling Custom Picklists
- Retrieving Multipicklist Field Values
- Working with Dependent Picklists
- Working with Dependent Picklists II
- Attaching Files to a Salesforce Record
- Adding Attachments to a Salesforce Record
- Creating Chatter Records
- Creating Chatter Records with an Attachment
- Finding the RecordType
- Executing Salesforce Partner API Methods
- Queries Spanning Multiple Query Results
- Working with the SalesforceGenericEntity
- Create Multiple Records in Salesforce with One API Call
- Persisted Login with Web Forms for Marketers
- Saving to Salesforce from an MVC form
- Salesforce Field Values in Sitecore Facets for Rules Based Personalization
- Salesforce Field Values in Sitecore Default Facets
- Working with Salesforce Metadata
- Working with Salesforce Duplicate Rules
- Sync Salesforce field values into Sitecore facets
- Filtering Data with S4S
Code examples that specifically relate to Sitecore WFFM Save Actions can be seen in the WFFM section.