9. Preserving Data Quality Flashcards

1
Q

What are Validation Rules?

A

Validation Rules verifies that the data a user enters in a record meets the standards you specify before the user can save the record.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How does a Validation Rule work?

A
  1. User enters invalid value and attempts to save.
  2. validation rule uses a boolean statement to evaluate data.
  3. if error condition is true, save is stopped and the use sees an error message.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What do we use Validation Rules for?

A

We use to them to:

  • improve data integrity
  • make a field conditionally required
  • prevent the entry of invalid data values directly by users or by other systems
  • enforce role-specific, profile-specific, or user-specific constraints
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does the IsChanged(field) function do?

A

Checks if the field’s value is different from its prior value, and returns TRUE if the values differ. Otherwise, returns FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does the PriorValue(field) function do?

A

Returns the previous value for the field.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the IsNew() function do?

A

Checks if the record is new, and returns TRUE if it is new. Otherwise, returns FALSE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do you enforce conditionally required fields?

A

Create a validation rule to enforce conditional required behavior.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do you enforce proper data format?

A

Create a validation rule using the REGEX function to enforce proper data format.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are some examples of when you could you want proper data format?

A
  • phone numbers
  • zip codes
  • billing states
  • driver’s license numbers
  • credit card numbers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is Regular Expression (regex)?

A

Ben’s Definition 1: String that we use to specify a format that we want our format to match.

Ben’s Definition 2: Format specification where we lay out the string format that we expect the values were getting to follow and whenever those values are provided they’re matched against our regex string.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How do you enforce data consistency?

A

Create a validation rule with VLOOKUP to enforce data consistency

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the VLOOKUP function?

A

returns a value by searching for a matching value on a custom object

it can ONLY be used in the validation rules

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do you prevent data loss?

A

Create a validation rule that prevents records from being added or deleted.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly