CleanRule

Represents a data integration rule that controls how a data service adds and updates data for existing records in an org.

Version 

Introduced in API version 38.0.

Supported SOAP API Calls 

create(), delete(), describeSObjects(), query(), retrieve(), update(), upsert()

Supported REST API Methods 

DELETE, GET, HEAD, PATCH, POST, Query

Fields 

CleanDataServiceId 

  • Type: reference

  • Required: No

  • Properties: Create, Filter, Group, Sort

  • Description: A foreign key reference to the CleanDataService that processes this CleanRule.

  • Relationship name: CleanDataService

  • Relationship type: relationship

  • Refers to: CleanDataService

DataAssessmentStatus 

  • Type: picklist

  • Required: No

  • Properties: Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update

  • Description: The status of the data assessment. The following are valid values: This field is read only.

  • Possible values:

    • HIDDEN — Hidden (default)

    • NOT_STARTED — Not Started

    • IN_PROGRESS — In Progress

    • PENDING_AGGREGATION — Pending Aggregation

    • AGGREGATION_COMPLETE — Aggregation Complete

    • FAILED_AGGREGATION — Failed Aggregation

    • ABORTED — Aborted

    • Hidden (default) — Hidden (default)

    • Not Started — Not Started

    • In Progress — In Progress

    • Pending Aggregation — Pending Aggregation

    • Aggregation Complete — Aggregation Complete

    • Failed Aggregation — Failed Aggregation

    • Aborted — Aborted

  • Default value: HIDDEN

Description 

  • Type: textarea

  • Required: No

  • Properties: Create, Filter, Group, Nillable, Sort, Update

  • Description: User-friendly text that describes the data integration rule.

DeveloperName 

  • Type: string

  • Required: No

  • Properties: Create, Filter, Group, Sort, Update

  • Description: This name can contain only underscores and alphanumeric characters, and must be unique in your org. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores. This unique name prevents conflicts with rules from other packages that have the same MasterLabel.

    Only users with View DeveloperName OR View Setup and Configuration permission can view, group, sort, and filter this field.

    Note

IsBulkEnabled 

  • Type: boolean

  • Required: No

  • Properties: Create, Defaulted on create, Filter, Group, Sort, Update

  • Description: If this flag is set to true, the system automatically applies the rule to existing records whenever the rule is updated or saved. If the flag is set to false, the system doesn’t automatically apply the rule to existing records. You can always apply the rule manually.

  • Default value: false

IsSilentSaveEnabled 

  • Type: boolean

  • Required: No

  • Properties: Create, Defaulted on create, Filter, Group, Sort, Update

  • Description: If false, updates don’t modify LastModifiedDate and LastModifiedById when it applies this rule; otherwise, updates insert the current date and the current user.

  • Default value: false

Language 

  • Type: picklist

  • Required: No

  • Properties: Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update

  • Description: The language of the data integration rule. The following values are permitted:

  • Chinese (Simplified): zh_CN

  • Chinese (Traditional): zh_TW

  • Danish: da

  • Dutch: nl_NL

  • English: en_US

  • Finnish: fi

  • French: fr

  • German: de

  • Italian: it

  • Japanese: ja

  • Korean: ko

  • Norwegian: no

  • Portuguese (Brazil): pt_BR

  • Russian: ru

  • Spanish: es

  • Spanish (Mexico): es_MX Spanish (Mexico) defaults to Spanish for customer-defined translations.

  • Swedish: sv

  • Thai: th The Salesforce user interface is fully translated to Thai, but Help is in English.

  • Possible values:

    • en_US — English

    • de — German

    • es — Spanish

    • fr — French

    • it — Italian

    • ja — Japanese

    • sv — Swedish

    • ko — Korean

    • zh_TW — Chinese (Traditional)

    • zh_CN — Chinese (Simplified)

    • pt_BR — Portuguese (Brazil)

    • nl_NL — Dutch

    • da — Danish

    • th — Thai

    • fi — Finnish

    • ru — Russian

    • es_MX — Spanish (Mexico)

    • no — Norwegian

MasterLabel 

  • Type: string

  • Required: No

  • Properties: Create, Filter, Group, Sort, Update

  • Description: Master label for this object. This display value is the internal label that is not translated.

MatchConfidence 

  • Type: double

  • Required: No

  • Properties: Create, Filter, Nillable, Sort, Update

  • Introduced: API version 43.0

  • Description: Indicates how closely a Lightning Data record matches a Salesforce record. The higher the minimum value is set, the more precise the matches. This field is used in packages that support match scores for third-party data. Valid values include an integer determined by the data service provider. If the value is null, the default value from the data service provider is used.

MatchRule 

  • Type: string

  • Required: No

  • Properties: Create, Filter, Group, Nillable, Sort

  • Description: An internal label for the matching rule in the data service that’s associated with this CleanRule.

ShouldBypassTriggers 

  • Type: boolean

  • Required: No

  • Properties: Create, Defaulted on create, Filter, Group, Sort, Update

  • Description: If true, indicates that the system does not apply triggers when it applies this rule; otherwise, the system applies the triggers.

  • Default value: false

ShouldBypassWorkflow 

  • Type: boolean

  • Required: No

  • Properties: Create, Defaulted on create, Filter, Group, Sort, Update

  • Description: If true, the system bypasses workflow rules when it applies the data integration rule; otherwise, the system applies workflow rules.

  • Default value: false

SobjectType 

  • Type: picklist

  • Required: No

  • Properties: Create, Filter, Group, Restricted picklist, Sort

  • Description: The standard or custom object in your org that’s acted on by this CleanRule. The possible values are:

  • Account

  • Address

  • Contact

  • CustomEntityDefinition

  • Lead

  • ResourceAbsence

  • ServiceAppointment

  • ServiceTerritory

  • ServiceTerritoryMember

  • WorkOrder

  • WorkOrderLineItem

In addition, custom objects with data integration rules are possible.

The standard objects are installed with default data integration rules, but only the default rules for account, contact, and lead can be modified.

Note

SourceSobjectType 

  • Type: picklist

  • Required: No

  • Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort

  • Description: A data service object associated with this CleanRule. The set of picklist values includes all the object types defined in the data service. However, if you specify a non-existent object, the API call returns an error. If you enable the Salesforce data services, the following values appear.

  • CustomEntityDefinition: Information retrieved from an external source in the form of an external object to enrich an account, contact, or lead. We map the external object fields to the account, contact, and lead lookup and details.

  • DataCloudAddress: Geolocation data service.

  • DatacloudDandBCompany: Data.com data service. This service is only available in the Professional, Enterprise, Unlimited, and Performance Editions, and only with a Premium Clean license. Your administrator must enable this data service by enabling the data integration rules for account and lead.

If you install Marketplace packages that contain data services, their object names also appear in the set of picklist values.

Status 

  • Type: picklist

  • Required: No

  • Properties: Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort, Update

  • Description: Status of the data integration rule. Valid values are Active and Inactive.

  • Possible values:

    • Inactive — Inactive (default)

    • Active — Active

  • Default value: Inactive

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!