Building Applications with Force.com and VisualForce(Dev401)(十一):Designing Applications for Multiple Users: Proseving Data Quality
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的更多相关文章
- 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 ...
- 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 ...
- 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 ...
- 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 ...
- 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 ...
- 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 ...
- 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 ...
- 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 ...
- Building Applications with Force.com and VisualForce (DEV401) (二五):Visualforce Controller
Dev401-026:Visualforce Pages: Visualforce Controller Module Objectives1.Identify the functionality ...
随机推荐
- 苹果为何要一定要去印度生产iPhone
现在,关于苹果手机有几种流行的猜想和期待,今年恰逢iPhone问世十周年,新产品估计会有颠覆性创新,消费者正望穿秋水,翘首企盼,但只需待到金秋便可知晓,何况iPhone8或许也就是一小撮发烧友的选 ...
- 【Java】Map总结和源码注释
前言 Map为一个Java中一个重要的数据结构,主要表示<key, value>的映射关系对.本文包括了相关Map数据结构的总结和源码的阅读注释. HashMap 初始化,可以选择第二个初 ...
- swagger使用以及一些注解说明
@Api:作用于Conntroller类上 value:字段说明 description:描述 tags:分组 (经常用到tags,例如如下,我只是给value,则默认应用了类名) @ApiOpera ...
- 使用QT绘制一个多边形
目录 1. 概述 2. 实现 2.1. 代码 2.2. 解析 3. 结果 1. 概述 可以通过QT的重绘事件和鼠标事件来绘制多边形,最简单的办法就是在继承QWidget的窗体中重写paintEvent ...
- deepin中安装pycharm过程
安装过程真的超级简单!一遍就会! 1.下载pycharm(下载地址):https://www.jetbrains.com/pycharm/ 2.在网址中找到对应的版本:在deepin中选择linux版 ...
- Spring Boot从入门到精通(七)集成Redis实现Session共享
单点登录(SSO)是指在多个应用系统中,登录用户只需要登录验证一次就可以访问所有相互信任的应用系统,Redis Session共享是实现单点登录的一种方式.本文是通过Spring Boot框架集成Re ...
- 【MySQL 原理分析】之 Explain & Trace 深入分析全模糊查询走索引的原理
一.背景 今天,交流群有一位同学提出了一个问题.看下图: 之后,这位同学确实也发了一个全模糊查询走索引的例子: 到这我们可以发现,这两个sql最大的区别是:一个是查询全字段(select *),而一个 ...
- seo搜索优化教程05-SEO常用专业术语
SEO常用的专业术语很多,星辉信息科技专门抽空进行了整理,主要如下:. SEO 根据搜索引擎规则来进行搜索引擎优化,进而使得在搜索结果中获得较好的排名 关键词 关键词也叫keywords,表示在搜索引 ...
- nsq 初学使用日记
win下更加直观一些,所以不使用liunx 第一步下载 nsq 下载地址 https://github.com/nsqio/nsq.git 使用git clone或者go get 下载下来 第二部 编 ...
- this.baseInfoList = [...this.baseInfoList] 所有和数组有关的操作,最后一定都展开一次,否则就没有双向绑定!!
this.baseInfoList = [...this.baseInfoList] 所有和数组有关的操作,最后一定都展开一次,否则就没有双向绑定!! this.baseInfoList = [... ...