Data & Analytics Management Flashcards
Data Validation Tools
- Tools which are used to ensure accurate data is entered into Salesforce by way of validation rules that ensure that what is acceptable as new or updated data meets the conditions set
- There are 2 types of rules
1.) System Validation
2.) Custom Validation
2 Types of Storage in SF
1.) Data
2.) File
Record Storage
Uses data storage
File Storage
This type of storage includes the following:
1.) Files in attachments
2.) Files
3.) Content
4.) Chatter files
5.) ‘Documents’ tab
6.) Knowledge article files
7.) Site.com assets
6 Data Management Considerations
1.) File Format
2.) SF Record ID
3.) Mass Transfer, Update, and Delete Records
4.) Data Quality Considerations
5.) Recycle Bin
6.) Duplicate Management
File Format
- 1st data management consideration
- ALL data files must be in CSV format
SF Record ID
- 2nd data management consideration
- Globally unique ID that every record has
- Can either be 15 or 18 characters that the API will accept
- An External ID can be used as an alternative to the record ID for matching when importing or updating data
Mass Transfer, Update, and Delete Records
- 3rd data management consideration
- SF allows for the Mass and Individual Transfer of Accounts, Leads, Custom Objects, approval requests, Opportunity teams, update Addresses, and mass deletion of records
Data Quality Considerations
- 4th data management consideration
- The quality of data is critical for the healthy functioning of an org
- To improve data quality, use org-wide standards for data entry, naming conventions, importing clean data, using Validation Rules, and removing duplicate records
Recycle Bin
- 5th data management consideration
- Deleted records are stored here for 15 days or until the limit is reached allowing for record restoration
Duplicate Management
- 6th data mangement consideration
- Controls whether and when duplicates records can be created using matching rule criteria
- Duplicate jobs can be run in Lightning Experience to find and merge duplicates across the org
5 Data Validation Methods in SF
1.) System Validation
2.) Required Fields
3.) Unique Fields
4.) Custom Validation Rule
5.) Validation Condition & Error
System Validation Rules
- 1st method of Data Validation in SF
- Performed by SF (ex: This ensures that the Data Type is correct for a field)
- Set up on the field itself, by limiting field length, requiring it be unique, or other simple requirements
Required Fields
- 2nd method of Data Validation in SF
- A custom field can be made required so that a record cannot be saved without specifiying its value during creation or update
Unique Fields
- 3rd method of Data Validation in SF
- Text, e-mail, and number fields can be marked as unique in order to prevent duplicate field values on records
- Prevents duplicate values on the fields across all records of the object
- Only certain field types can be marked unique (ex: text, email, and number)
- Case sensitivity can be set for text fields
Custom Validation Rule
- 4th method of Data Validation in SF
- Can be used to perform a complex validation that involves one or more fields
- 2 main parts:
1.) Error Condition Formula
2.) Error Message - More complex and can contain formulas or criteria that determine if data can be processed or rejected
- A message is displayed in the event that the right criteria is not met
- This ensures clean and accurate data is entered
Validation Condition & Error
- 5th method of Data Validation in SF
- Specified for a Validation Rule
- When the condition formula is true, the error is displayed
2 Main Methods for Mass Updating and/or Importing Data in SF
1.) Data Import Wizard
2.) Data Loader
3 Ways to Backup Data (Export) in SF
1.) Data Export Service
2.) Reports
3.) Data Loader
Data Export Service
- 1st way to backup data (Export) in SF
- Can be used to export SF data in .csv files
- Files, documents, images, and attachments can also be included in the export
- The export can be executed immediately or scheduled to run on a weekly or monthly basis
Reports
- 2nd way to backup data (Export) in SF
- Report data can be exported in CSV or XLS format by opening the desired report and selecting the ‘Export’ option from the drop-down menu
Data Loader
- 3rd way to backup data (Export) in SF
- Can be used to export ALL SF records in the form of .csv files
- Can be scheduled weekly or monthly
- If required, soft-deleted records can be excluded
- Exporting (backing up) with this tool allows me to write SOQL queries to selectively export (backup) records that fit a certain set of criteria and to choose which fields to include for each of these records
- Records are exported (backed up) in the form of .csv file(s) with 1 file per object
- Option to include (Export All) or exclude (Export) soft-deleted records, which are records that are in the SF Recycle Bin (any records deleted in the last 15 days will automatically be placed here)
- Does NOT support importing to or exporting from Sandbox environments
fData Import Wizard
- Simplest tool to Insert-only, Update, and/or Upsert records from SF
- Data export (backing up) CANNOT be done with this tool
- Accessed through Setup by Admins or End-Users
- Imports tasks (records) ONLY; Limit of importing 50,000 records
- Source file(s) MUST be in CSV format
- Only 1 Import job can be done at a time
- Validation rules and triggers WILL fire
- Running Workflow Rules and processes when records meet the critiera is optional
- Includes a feature which allows Users to turn off running Workflow Rules and Processes during Import
- ONLY:
1.) Accounts
2.) Person Accounts
3.) Contacts
4.) Leads
5.) Solutions
6.) Campaign Members
7.) Custom Objects
are allowed - Allows a User to choose which fields to find possible duplicates in and determine which action to take
- Existing records can be updated with this tool
- This tool catches duplicates
- Can choose which fields are used to determine if there is a duplicate record (ex: Contact – Name, Email or Salesforce Record Id, Account – Account Name and Site or Salesforce ID.)
- External ID’s can be used with this tool
3 Steps for using Data Import Wizard
1.) Choose data
2.) Edit field mapping
3.) Import data
Data Loader
- Client app that is downloaded and installed on my computer
- This app can be used to Add (Mass Import), Update, Delete, or Export records
- This tool is ONLY available to Admins
- Up to 5 MILLION records can be loaded
- This tool supports Exporting and Deleting records, in addition to data loads
- Workflow Rules, Validation Rules, and Triggers WILL fire for any inserted or updated records that meet the workflow rule criteria (NOT optional)
- Supports ALL objects and uploading attachments
- NO OPTION to find duplicates; an Admin would have to either engage in data cleaning and possibly use the ‘Upsert’ command to avoid unwanted duplicates
- Data to be loaded can be specified from the UI or Command Line Interface (Windows only)
- Extra layer of security can be added to protect unwanted users from importing or exporting data
- ‘Hard Delete’ will delete records without moving to the recycle bin. The ‘Use Bulk API’ setting must be enabled AFTER installing this tool
- ‘Upsert’ will update an existing record if a match is found; if not, then a new record is inserted
- ‘Export All’ will include records in the recycle bin when using this tool
- Command Line Interface (Available for Windows only) allows the automation of the loading process by setting up the configuration, sources, actions and mappings from a command line. Useful for batch operations such as nightly imports
- Import and Export is done via CSV files with each row in a CSV file creating a record while each column maps to a field
- Loading process can be scheduled/automated
5 Steps for Inserting, Updating, and Upserting files in Data Loader
1.) Login to Data Loader
2.) Select Query (Insert, Update, or Upsert)
3.) Select object and CSV files
4.) Map fields
5.) View success and error files
Import Articles
- Tool where existing articles can be imported into Salesforce Knowledge
- In Lightning Knowledge, articles of multiple record types can be imported at once
- When using this tool, a .zip folder with the following files MUST be created:
1.) The .csv file for each article
2.) The .properties file setting the article’s parameters (such as date format, character encoding, etc.) - The .zip file should contain the .csv file with the article, its corresponding .properties file, and any related HTML, or image files that need to be imported with it
- These articles MUST be sorted out by type and match its predefined Article Type in Salesforce Knowledge (for example, when importing an FAQ article, make sure that there is an FAQ article type in Salesforce Knowledge first)
- Field-level security settings allow restricting users’ access to view and edit specific fields
- Fields seen on edit and detail pages are a combination of page layout and field-level security settings
- Field-level security can be defined for multiple fields on a single permission set or profile, or a single field on all profiles
- The structure of the article needs to be predefined in Salesforce Knowledge as well
- The Salesforce Knowledge Article Type needs to have the corresponding fields to accommodate the article to be imported
- The fields will be mapped, similarly to the Data Import Wizard
- These articlees do NOT support subfields
- If the org has enabled multiple languages for its Knowledge base, use the option to Import and Export Articles for Translation from the Setup Menu
4 Steps for Importing Articles
1.) Create the .csv file
2.) Specify important parameters
3.) Zip the files
4.) Select Knowledge Base, Record Type, and Import .zip file
4 Tools for Maintaining an Org’s Data Quality
1.) ‘Mass Update Addresses’ Feature
2.) Validation Rules
3.) Duplicate Rules
4.) Merging Records
‘Mass Update Addresses’ Feature
Feature which can be used to ensure standardized country and state/province fields such as the official two-digit ISO codes
Duplicate Rules
- References matching rules, and together they define what constitutes a match and what action to take if the duplicate is found
- Determines whether and when duplicate records can be created
- Works together with matching rules to prevent users from creating duplicate records
- Salesforce has provided standard rules as well as the ability to create custom ones
Merging Records
Records considered as duplicates can be optionally merged
Matching Rules
- Determines whether the record a user is creating or updating is similar enough to other records to be considered aduplicate
- These rules will need to be activated first before it can be used in a duplicate rule
Dynamic Forms-Enabled Page
Page which has the ability to let Users know if they are working on a potential duplicate even before a save attempt
Duplicate Jobs
- Useful for periodic clean-up
- Used in Lightning Experience Performance and Unlimited Edition with standard or custom matching rules to scan existing Accounts, Contacts, or Leads for duplicates
- Can be run on custom objects; please note it’s not possible to compare and merge duplicate records
‘Duplicate Jobs’ feature
Feature in which duplicates can be found across an org
Big Objects Storage
- Storage which stores and manages massive amounts of data on the Salesforce platform
- I can archive data from other objects or bring data sets from outside systems into a big object to get a full view of my customers
3 Data Backup Options in SF
1.) Reports
2.) Data Loader
3.) Data Export Service
Reports
- 1st Data Backup option
- Data can be exported in either .csv or .xls formats by opening the ______ and selecting the ‘Export’ option from the drop-down menu
Data Loader
- 2nd Data Backup option
- App which can be used to export selected SF object data and records in the form of .csv files
- If required, soft-deleted records can be excluded
Data Export Service
- 3rd Data Backup option
- Can be used to perform an automated and scheduled export of complete sets of SF object data in .csv files
- Files, documents, images, and attachments can also be included in the export
- The export can be executed immediately (can only be done once every 7 days) or scheduled to run on a weekly or monthly basis
- Export from Sandboxes is NOT supported
Required File Type for Data Imported into SF
CSV
3 Required File Formats for Data to be Exported (Backed up) into SF
1.) CSV
2.) XLS
3.) XLSX
External ID
- An identifier for a record from another system that is added to a Salesforce object
- Useful when loading or identifying data froman external system
- Up to 25 custom fields can be used as these types of ID’s on an object
- Field type must be text, number, or email. It can also be marked as case sensitive
- Can be used for matching when importing or updating data. It is recommended to have the ‘Unique ID’ setting enabled
Mass Transfer Records Tool
- Tool which is used to transfer multiple records from 1 User to another within Salesforce
- Must be the record owner or User above in the role or territory hierarchy
- Found in the ‘Data’ section from Setup
- In some records, related recordsare transferred as well (ex: Accounts, Leads)
- When changing ownership, some related records are also transferred to the new owner
- Does NOT support all standard objects (Data Loader or the Data Import Wizard can be used as alternatives)
- Records to be updated can be exported through Data Loader or reports. The file should include the record IDs
- The import file can be then modified by replacing the owner ID column with the appropriate record owner ID
- Data Loader or the Data Import Wizard can be used to import the updated records. The Update command should be used in the operation.
8 Standard Objects that can be Mass Deleted
1.) Accounts
2.) Activities
3.) Cases
4.) Contacts
5.) Leads
6.) Solutions
7.) Products
8.) Reports
- Note: Related data is also deleted
Match Keys
Codes based on the fields referenced in a matching rule and applied to existing records
Record-Level Security
Determines the records that will be processed by a duplicate rule
‘Potential Duplicates’ component
- Components which can be added to the record page
- It will notify users of possible existing duplicates of a particular record
4 Conditions in which Duplicate Rules will NOT run
1.) Created with Quick Create or via Community-self-registration
2.) Restored with Undelete
3.) Added with Lightning Sync
4.) Manually merged
Duplicate Record Set
A list of items identified as duplicates