Dev401-012:Proseving Data Quality

Universal Containers Scenario
1.Universal Containers(UC) wants to enforce standards for managing positions and candidates company-wide.
2.UC would like the Recruiting app to help guide its hiring managers to always fill in a duration when posting a temporary position.
3.UC needs to learn how validation rules can be used to enforce policies and procedure.

Validation Rules
1. Consist of a formula which tests a condition that returns TRUE or FALSE.
2.Triggered on record save
3.When the formula evaluated to TRUE:
- Save is prevented.
- A customized error message is displayed to the user.

Quick Review: Validation Rules
1.What are validation rules?
2.What are the two thing that an developer must create when setting up a validation rule?
3.List best practices for building validation rules.

Exercise 2-1:Building Validation Rules to Enforce Conditionally Required Fields
1.Goal:
- Build a validation rule that prevents users from saving Temp positions with a blank Duration.
2.Scenario:
- Universal Containers would like to enforce their policies around Temporary positions. The Duration field on a Temp Position should not be blank. It should contain a value between 1 and 365.
3.Tasks:
- Build a new validation rule that ensures that these policies are followed.

Exercise 2-2:Building Validation Rules to Enforce Conditionally Required Fields
1.Goal: 
- Build a validation rule that requires positions that have been filled to have a start date does not pre-date the position was filled.
2.Scenario:
- Each time a position is filled, recruiters should populate the Start Date on the position. The Start Date should not be before the data that the position was filled.
3.Tasks:
- Build a new validation rule that ensures that these policies are followed

Exercise 2-3:Building Validation Rules to Enforce Conditionally Required Fields
1.Goal:
- Build a validation rule that makes the Recommend for Hire field requirement only under certain conditions.
2.Scenario:
- The Reason Recommended field on the Review object should be populated only if the Recommended for Hire checkbox is checked and the scores given are below two.
3.Tasks:
- Modify the existing validation rule that requires the Reason Recommended field be populated.

Universal Containers Scenario
1.Universal Containers would like to increase the accuracy of the candidate records entered into the system. They would like to ensure that both zip codes and social security numbers are entered in the correct format.
2.Universal Containers needs to know how to use regular expressions and validation rules to enforce this.

Enforcing Proper Data Format
1.Validation rules can be used to enforce proper data format. For example:
- US phone numbers have 10 digits.
- Zip codes should follow the format 99999 or 99999-99999.
- Billing State in the US and Canada should be valid postal codes(2 letter, capitalized abbreviations).
- Validate that drivers license numbers follow the proper format their state.
- Credit card numbers should follow the appropriate format for their type.

Exercise 2-4: Building Validation Rules to Enforce Data Format
1. Goal:
- Build a validation rule that enforces proper data format.
2.Scenario:
- Universal Containers would like to make sure that when candidates are entered, the zip code is entered in the correct format.
3.Tasks:
- Create a validation rule on candidates that requires that zip codes  be entered in a valid 5 digit or 5 digit - 4 digit format.

Exercise 2-5: Building Validation Rules to Enforce Data Format
1. Goal:
- Build a validation rule that enforces proper data format.
2.Scenario:
- Universal Containers would like to make sure that when candidates are entered, the Social Security Number is entered in the correct format.
3.Tasks:
- Create a validation rule on candidates that requires that Social Security Numbers be entered in the following format 999-99-9999.

Module Agenda
1.Enforcing Conditionally Required Fields
2.Enforcing Proper Data Format
3.Enforcing Consistency
4 Preventing Data Loss

Universal Containers Scenario
1.Universal Containers would like to ensure that when the state and zip code of a candidate are entered, the state and zip code match.
2.Universal containers would like to know how to use validation rules with VLOOKUP to enforce this.

Enforcing Data Consistency
1.Validation rules in combination with the vlookup function can be used to enforce the consistency of data in Salesforce. For Example:
- Ensure that the zip ode and state entered on a record match.
- Ensure that the city and state entered on a record match.

Universal Containers Scenario
1.Once a job application has been approved. The interview process is completed and users should not be able to add or remove reviews.
2.Universal Containers need to understand how validation rules can enforce this.

Preventing Data loss
1.Validation rules can be used to prevent users from adding or deleting records.
2.In this case, validation rules are used in conjunction with a Roll-Up Summary Field(RSF).
- First, build a RSF on the parent object, that sums the number of child records.
- Then, create a validation rule on the parent object conditionally prevents changes to the number listed in the RSF.
- If a use tries to add to delete a record, the validation rule will fire and prevent users from adding or deleting.

Exercice 2-7:Creating Validation Rules to Prevent Data Loss
1.Goal:
- Build validation rule that prevents users from adding or deleting reviews once a job application has been approved.
2.Scenario:
- Universal Containers would like make sure that once a job application is approved, users will not be able to add or remove reviews.
3.Tasks:
- Create a validation rule that references the roll-up summary field to ensure that reviews are not added or deleted.

Module Review
1. When are validation rules applied?
Before record save
2.When setting up a validation rule, the developer must write the Error Condition Formula and the (Error Message).
3.True or False: validation rules are enforced through the API?
True.
4.List use cases for utilizing validation rules.

Building Applications with Force.com and VisualForce(Dev401)(十一):Designing Applications for Multiple Users: Proseving Data Quality的更多相关文章

  1. Building Applications with Force.com and VisualForce(Dev401)(十):Designing Applications for Multiple Users: Building Business Processes that You Want

    Dev401-011: Building Business Processes that You Want Course Objectives1.Describe the capabilities o ...

  2. Building Applications with Force.com and VisualForce(Dev401)(七):Designing Applications for Multiple users:Managing your users' experience I

    Dev 401-007 Designing Applications for Multiple users: Managing your users' experience part 1 Module ...

  3. Building Applications with Force.com and VisualForce(Dev401)( 八):Designing Applications for Multiple Users: Controling Access to Records.

    Module Objectives1.List feature that affect access to data at the record level.2.List the organizati ...

  4. Building Applications with Force.com and VisualForce(Dev401)( 八):Designing Applications for Multiple users:Managing your users' experience II

    Dev 401-008: Design Applications for Multiple Users' Experience Part 2Universal Containers Scenario1 ...

  5. Building Applications with Force.com and VisualForce(Dev401)( 九):Designing Applications for Multiple Users: Putting It All Together

    Module Objectives1.Apply profiles, organization wide defaults, role hierarchy and sharing to given a ...

  6. Building Applications with Force.com and VisualForce(六):Designing Applications for Multiple users: Accommodating Multiple Users in your App

    Dev 401-006 Designing Applications for Multiple users: Accommodating Multiple Users in your App. Cou ...

  7. Building Applications with Force.com and VisualForce (DEV401) (二) : Application Essentials:Designing Application on the Force.com Platform

    Dev 401-002:Application Essentials:Designing Application on the Force.com Platform Course Objectives ...

  8. Building Applications with Force.com and VisualForce(Dev401)(十八):Visualforce Pages: Introduction to Visualforce

    Dev401-020:Visualforce Pages: Introduction to Visualforce Course Objectives1.Understand the benefits ...

  9. Building Applications with Force.com and VisualForce (DEV401) (二五):Visualforce Controller

    Dev401-026:Visualforce Pages: Visualforce Controller   Module Objectives1.Identify the functionality ...

随机推荐

  1. webpack环境配置2

    1.webpack安装 Step 1: 首先安装Node.js, 在1中已经详细介绍了. Step2: 在Git或者cmd中输入下面这段代码, 通过全局先将webpack指令安装进电脑中npm ins ...

  2. Docker实战之Consul集群

    前言 最近参加了几场 Java 面试,发现大多数的微服务实践还是 Eureka 偏多,鉴于笔者的单位选型 Consul,这里对 Consul 做简单总结. 该篇是 Docker 实战系列的第三篇.传送 ...

  3. 在ASP.NET Core Mvc 集成MarkDown

    这几天在做文章编辑,首先就想到了markdown,它比其它的都要新,而且很好用,相对于其它的html编辑器,好久不更新,要好得多,哦~对了我现在已经用上新版的Edge了,经过很多朋友测试,性能比谷歌浏 ...

  4. 7-6 jmu_python_最大公约数&最小公倍数 (10 分)

    本题要求从键盘输入两个整数(以逗号间隔),编程求出这两个数的最大公约数和最小公倍数 提示:求最大公约数可用辗转相除法,最小公倍数用两数的积除以最大公约数 输入格式: 在一行中输入两个整数,以逗号间隔 ...

  5. 正式学习MVC 01

    1.新建项目 点击创建新项目,选择ASP.NET web应用程序,对项目进行命名后点击创建. 截图如下: 取消勾选HTTPS配置 可选择空 + mvc 或直接选定MVC 2.目录结构分析 1) App ...

  6. 如何使用Pytorch迅速实现Mnist数据及分类器

    一段时间没有更新博文,想着也该写两篇文章玩玩了.而从一个简单的例子作为开端是一个比较不错的选择.本文章会手把手地教读者构建一个简单的Mnist(Fashion-Mnist同理)的分类器,并且会使用相对 ...

  7. IDEA激活码(可用2100年,亲测有效)

    三步骤: 1.下载rar包 2.将rar中bin包内容替换IDEA安装目录下bin内容,然后编辑idea.exe.vmoptions和idea64.exe.vmoptions文件,编辑内容一样 将最后 ...

  8. 读《Java并发编程的艺术》学习笔记(二)

    第2章  Java并发机制的底层实现原理 Java代码在编译后变成字节码,字节码被类加载器加载到JVM中,JVM执行字节码,最终转换为汇编指令在CPU上执行,Java中所使用的并发机制依赖于JVM的实 ...

  9. LVM简介及CentOS7 LVM操作实战

    LVM简介LVM是逻辑盘卷管理(LogicalVolumeManager)的简称,它是Linux环境下对磁盘分区进行管理的一种机制,LVM是建立在硬盘和 分区之上的一个逻辑层,来提高磁盘分区管理的灵活 ...

  10. 数据库介绍以及MySQL数据库的使用

    一 数据库介绍 1.1 数据库定义 数据库就是存储数据的仓库  本质上就是一套cs结构的TCP程序   客户端连接到服务器 向服务器发送指令  完成数据的操作 1.2  常见数据库 关系型数据库 就是 ...