Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

When submitting data to Salesforce with S4S Experience Forms, it is possible that submissions will fail if Salesforce Duplicate Rules are implemented in Salesforce. Setting the following to S4SMapping.EnableDuplicateAllowSave value to ‘true’ in configuration in the \App_Config\Modules\S4S\S4S.config file will force the record to be saved by ignoring any Salesforce Duplicate Rules.

...

There are 3 courses of action to handle this in S4S Experience Forms:

  1. Set the S4SMapping.EnableDuplicateAllowSave configuration value to ‘true’ in configuration in \App_Config\Modules\S4S\S4S.config:

    Code Block
    languagexml
    <!--Overide duplicate rules to create new object -->
    <setting name="S4SMapping.EnableDuplicateAllowSave" value="false"/>

  2. Configure the S4S Experience Forms error handling to email form values to enter manually into Salesforce so the duplicate rules can be applied. See the following link for more information - Error Handling

  3. Create a custom submit action and implement code to process the Salesforce record matches that are returned in the FailedSaveResults collection. See the following code sample for more information - Working with Salesforce Duplicate Rules Submit Action Code Sample

Next Step

Congratulations, you have finished installing this option.

...