AccountCleanInfo
Account Clean Info provides a snapshot of the data in your Salesforce account record and its matched Data.com record at the time the Salesforce record was cleaned.
Account Clean Info includes a number of bit vector fields, whose component fields each correspond to individual object fields and provide related data or status information about those fields. For example, the bit vector field IsDifferent has an IsDifferentState field. If the IsDifferentState field’s value is False, that means the State field value is the same on the Salesforce account record and its matched Data.com record.
- CleanedBy indicates who (a user) or what (a Clean job) cleaned the account record.
- IsDifferent indicates whether or not a field on the account record has a value that differs from the corresponding field on the matched Data.com record.
- IsFlaggedWrong indicates whether or not a field on the account record has a value that is flagged as wrong to Data.com.
- IsReviewed indicates whether or not a field on the account record is in a Reviewed state, which means that the value was reviewed but not accepted.
Their individual bits are defined here.
Supported Calls
describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), update()
Fields
| Field Name | Details |
|---|---|
| AccountId |
|
| AccountSite |
|
| Address |
|
| AnnualRevenue |
|
| City |
|
| CleanedByJob |
|
| CleanedByUser |
|
| CompanyName |
|
| CompanyStatusDataDotCom |
|
| Country |
|
| DandBCompanyDunsNumber |
|
| DataDotComId |
|
| Description |
|
| DunsNumber |
|
| DunsRightMatchConfidence |
|
| DunsRightMatchGrade |
|
| Fax |
|
| Industry |
|
| IsDifferentAccountSite |
|
| IsDifferentAnnualRevenue |
|
| IsDifferentCity |
|
| IsDifferentCompanyName |
|
| IsDifferentCountry |
|
| IsDifferentCountryCode |
|
| IsDifferentDandBCompanyDunsNumber |
|
| IsDifferentDescription |
|
| IsDifferentDunsNumber |
|
| IsDifferentFax |
|
| IsDifferentIndustry |
|
| IsDifferentNaicsCode |
|
| IsDifferentNaicsDescription |
|
| IsDifferentNumberOfEmployees |
|
| IsDifferentOwnership |
|
| IsDifferentPhone |
|
| IsDifferentPostalCode |
|
| IsDifferentSic |
|
| IsDifferentSicDescription |
|
| IsDifferentState |
|
| IsDifferentStateCode |
|
| IsDifferentStreet |
|
| IsDifferentTickerSymbol |
|
| IsDifferentTradestyle |
|
| IsDifferentWebsite |
|
| IsDifferentYearStarted |
|
| IsFlaggedWrongAccountSite |
|
| IsFlaggedWrongAddress |
|
| IsFlaggedWrongAnnualRevenue |
|
| IsFlaggedWrongCompanyName |
|
| IsFlaggedWrongDescription |
|
| IsFlaggedWrongDunsNumber |
|
| IsFlaggedWrongFax |
|
| IsFlaggedWrongIndustry |
|
| IsFlaggedWrongNaicsCode |
|
| IsFlaggedWrongNaicsDescription |
|
| IsFlaggedWrongNumberOfEmployees |
|
| IsFlaggedWrongOwnership |
|
| IsFlaggedWrongPhone |
|
| IsFlaggedWrongSic |
|
| IsFlaggedWrongSicDescription |
|
| IsFlaggedWrongTickerSymbol |
|
| IsFlaggedWrongTradestyle |
|
| IsFlaggedWrongWebsite |
|
| IsFlaggedWrongYearStarted |
|
| IsInactive |
|
| IsReviewedAccountSite |
|
| IsReviewedAddress |
|
| IsReviewedAnnualRevenue |
|
| IsReviewedCompanyName |
|
| IsReviewedDandBCompanyDunsNumber |
|
| IsReviewedDescription |
|
| IsReviewedDunsNumber |
|
| IsReviewedFax |
|
| IsReviewedIndustry |
|
| IsReviewedNaicsCode |
|
| IsReviewedNaicsDescription |
|
| IsReviewedNumberOfEmployees |
|
| IsReviewedOwnership |
|
| IsReviewedPhone |
|
| IsReviewedSic |
|
| IsReviewedSicDescription |
|
| IsReviewedTickerSymbol |
|
| IsReviewedTradestyle |
|
| IsReviewedWebsite |
|
| IsReviewedYearStarted |
|
| LastMatchedDate |
|
| LastStatusChangedById |
|
| LastStatusChangedDate |
|
| Latitude |
|
| Longitude |
|
| NaicsCode |
|
| NaicsDescription |
|
| Name |
|
| NumberOfEmployees |
|
| Ownership |
|
| Phone |
|
| PostalCode |
|
| Sic | |
| SicDescription |
|
| State |
|
| Street |
|
| TickerSymbol |
|
| Tradestyle |
|
| Website |
|
| YearStarted |
|
Usage
Administrators can modify a limited set of AccountCleanInfo fields from the Account Clean Info page.
Developers can create triggers that read the Account Clean Info fields to help automate the cleaning or related processing of account records. For example, you might create a trigger that reads the Clean Status field on the Account object. If an account record’s Clean Status field value is Different but the record has no Billing Street value, the trigger could update the record’s status to Not Compared.
- Keep account records’ status InSync if
the only difference from matched records is the Phone
format (for example, (415) 353-8000 on the account record
versus 415 353 8000 on the matched Data.com record).
1trigger AccountPhoneTrigger on Account (before update) { 2 3 for (Account account: Trigger.new) { 4 Account oldAccount = Trigger.oldMap.get(account.ID); 5 if (account.CleanStatus == 'Different') { 6 List <AccountCleanInfo> cleanInfo = [Select Id, IsDifferentPhone, IsReviewedPhone, Phone from AccountCleanInfo where AccountId = :account.Id]; 7 if (cleanInfo.size() > 0 && cleanInfo[0].IsDifferentPhone && cleanInfo[0].Phone.StartsWith('+')) { 8 // if Data.com phone number is marked Different but starts with ‘+’, ignore this 9 // and set the status to “Reviewed” 10 AccountCleanInfo cleanInfoToUpdate = new AccountCleanInfo(); 11 cleanInfoToUpdate.Id = cleanInfo[0].Id; 12 cleanInfoToUpdate.IsReviewedPhone = true; 13 update cleanInfoToUpdate; 14 account.CleanStatus = 'Reviewed'; 15 } 16 } 17 } 18} - Create a customized set of Industry field values for accounts. Use triggers to map values from fields on imported or cleaned records onto a standard set of values.
- Read the CleanStatus field value on the Account object. If that value is Different, but a Salesforce record has no street address value, update the record’s status to Not Compared.
Associated Objects
This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.
- AccountCleanInfoChangeEvent (API version 62.0)
- Change events are available for the object.