Adding Profile Properties
The properties should be defined by adding the following element to the properties section:
<add type="System.String" name="<property_name>" customProviderData="S4S|[contact_attribute_schema_name]|[propertyType]"/>The table below explains each attribute of this definition:
Attribute | Description |
Name | The unique name of a property. |
Type | The .NET type of a property. This is the type a property will have in the ASP.NET environment. |
customProviderData | Any data required for the provider serving this property. In this case, S4S means that this property is to be handled by the S4S provider. The contact_attribute_schema_name or lead_attribute_schema_name specifies the name of the corresponding Salesforce contact or lead entity attribute. The propertyType defines the type of the contact or lead property. The S4S provider expects the pipe separator (|) between the attribute parts. |
readOnly | [Optional] |
The S4S profile provider expects the following values for the propertyType attribute:
String; represents the ‘string’ Salesforce type
Boolean; represents the ‘boolean’ Salesforce type
DateTime; represents the ‘dateTime’ Salesforce type
Float; represents the ‘float’ Salesforce type
Number; represents the ‘int’ Salesforce type
Money; represents the ‘currency’ Salesforce type
Note: This list of Salesforce types is a full list of supported types; no more types are expected to be supported in the current module version. See the full list of Primitive Data Types at http://www.salesforce.com/us/developer/docs/api/Content/primitive_data_types.htm |
Next Step
Extending the Sitecore Profile Item Template
Steps
- Adding a New Salesforce Domain
- Configuring ASP.NET Security Providers
- Configuring the Switching Providers
- Configuring the Membership Provider
- Configuring the Role Provider
- Configuring the Profile Provider
- Extending the Sitecore Profile Item Template
- Configuring UniqueKeyProperty (Optional)
- Configuring UniqueKeyCaseSensitiveProperty (Optional)