Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Duplicate Rule Header
Header Field Name and Values
The default value for all fields is false.
Field name: allowSave
Field values
- true—allow the user to acknowledge the alert and save the duplicate record. Applicable if an alert is enabled for the action.
- false—don't allow the user to acknowledge the alert or save the duplicate record. Applicable if an alert is enabled for the action.
Field name: includeRecordDetails
Field values
- true—return all fields in the duplicate record.
- false—return the duplicate record ID, but not the fields.
Field name: runAsCurrentUser
Field values
- true—when the duplicate rule is run, use the current user's sharing rules.
- false—when the duplicate rule is run, use the system sharing rules, not the current user's sharing rules.
Allow the user to acknowledge the alert and save the duplicate record. Indicate that the duplicate field's records are returned, and that the current user's sharing rules are enforced. These duplicate management configuration options are now applied when records are created, updated, and upserted.
1Sforce-Duplicate-Rule-Header: allowSave=true; includeRecordDetails=true; runAsCurrentUser=true