Building Applications with Force.com and VisualForce (DEV401)(五):Application Essential: Introducing Business Logic
Dev 401-005 Application Essential: Introducing Business Logic
Module Agenda
1.Custom object Queues
2.Workflow
3.Formula Fields
4.Roll up Summary Fields
5.Validation Rules.
Module Overview
1.Create a custom object queue.
2.Create an event-based workflow with a field update action.
3.Create a custom formula operating on fields from one object.
4.Create a cross-object formula.
5.Create a roll-up summary field.
6.Create validation rules.
Custom Object Queues
1.Queues allow groups of users to manage a shared workload more effectively.
2.A queue is a location where records can be routed to await processing by a group member.
3.Records remain in the queue util a user accepts them from processing or they are transferred to another queue.
4.Developers can specify the set of objects that are supported by each queue,as well as the set of users that are allowed
to retrieve records from the queue.
5.Any member of a queue has the same access to all records in the queue that an owner would have.
Exercise 4-1:Creating Custom Object Queues
1.Goal:
- Create a custom queue for the Recruiting department to hold position and candidate records
2.Scenario:
- Universal Containers wants to use the queue feature to manager the pool of recruiters working with open positions and candidates.
3.Tasks:
- Create a queue for positions and candidates.
Workflow Rules
1.Automate business processes
- Triggered on record write
- Execute Actions
.Immediately and /or
.Later(only if records still meets entry criteria)
Workflow Rule Configuration
1.Entry criteria:which records
- Object Type
- Evaluation Criteria
- Rule Criteria
2. Timing:when to excute actions
- Immediately
- Time Dependent
3. Actions:what to do
- Assign Task
- Update Field
- Send Email Alert
- Post Outbound SOAP Message
Custom Formula Fields
1."Smart" Custom fields that can be used to build business-specific calculations using simplle wizards and an Excel-like
formula language.
2.Supported on standard and custom objects.
3.Can reference standard, custom, or other formula fields.
4.Can reference fields on related objects.
Cross-Object Formula Fields
1.Cross-object formula fields enable you to incorporate merge fields from multiple objects for calculations and display
2.Create formulas that reference fields on parent or grand parent object(up to 5 levels)
3.Are limited to five unique relationships per object across all formulas and rules for that object.
4.Display fields from related objects on detail pages, list view,reports, etc
6.Use a simple wizard to browse across objects and insert fields in formulas.
Roll-Up Summary Fields
1.Roll-up summary fields are read-only formula field that can display the sum,min,or max value or record count of a field
in a related list.
- For all custom master-detail relationships.
- For limited standard relationships(Account-Opportunity and Opportunity-Product).
2.There is an option to include all records in the roll-up or just records that meet certain criteria.
Validation Rules
1.Validation rules verify that the data a user enters in a record meets the standards you specify before the user can save
the record.
2.A validation rule can contain a formula or expression that evaluates the date in one or more fields and returns a value
of True or False.
3.Validation rules also include an error message to display to the user when the rule returns a value of True due to an
invalid value.
4.Error message can be displayed directly below field or at top of the page.
- Multiple error messages may be displayed at one time.
Validation Rules
1.RecordType Name and ID can be formula merge fields.
2.Standard and custom User merge fields for the current user are also available, allowing user and profile specific
validation rules.
3.IsChanged(field0 function allows validation to be conditional based on whether a specific field value has changed.
4.PriorValue(field) allows access to previous value of field.
5.IsNew() allows different validation rules for create vs. update actions.
Validation Rules Best Practices
1.Express error message in terms that help the user enter a valid value.
2.Keep error messages relatively short toavoid excessive wrapping.
Exercise 4-6:
Creating Validation Rules
1.Goal:
- Create validation rules to enforce business requirements
2.Scenario:
- Universal Containers wants to ensure that reviewers provide an explanation if they give someone a low score for Cultural
Fit the Review object.
- Additionally, the want reviewers to always provide specific detail if the are recommending someone for hire.
- Finally, UC employees should not be able to save a position record unless the Hiring manager field is filled out.
3.Task:
- Add a validation rule to require that if someone give a candidate a Culture Fit Score of <2 they must include an explanation
- Add a validation rule that requires people to fill in the Reason Recommended box if the check Recommend for Hire
- Add a validation rule that requires that all positions must have a Hiring Manager Field
Module Review
1.What is the purpose of a Queue?
2.When is workflow triggered?
3.Give an example of cross-object formula that we created during this section.
4.When writing a validation rule, developers must write the error condition formula and the (error message)?
5.What are the tree ways to make a field required?
Check-box;Validation Rule;Page Layout
6.Where can uses go to find more information on creating formula fields and validation rules?
Building Applications with Force.com and VisualForce (DEV401)(五):Application Essential: Introducing Business Logic的更多相关文章
- 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) (四):Building Your user Interface
Dev 401-004:Application essential:Building Your user Interface: Module Agenda1.Custom Applications2. ...
- Building Applications with Force.com and VisualForce (DEV401) (三):Application Essential:Building Your Data Model
Dev 401-003:Application Essential:Building Your Data Model Object Relationships1.Link two objects- P ...
- 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)(十):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) (二五):Visualforce Controller
Dev401-026:Visualforce Pages: Visualforce Controller Module Objectives1.Identify the functionality ...
- Building Applications with Force.com and VisualForce (DEV401) (二一):Visualforce Componets (Tags) Library Part 1
Dev401-022:Visualforce Pages: Visualforce Componets (Tags) Library Part 1 Module Objectives1.List ke ...
- Building Applications with Force.com and VisualForce (DEV401) (二四):JavaScript in Visualforce
Dev401-025:Visualforce Pages: JavaScript in Visualforce Module Objectives1.Describe the use of AJAX ...
- Building Applications with Force.com and VisualForce (DEV401) (二三):Visualforce Componets (Tags) Library Part III
Dev401-024:Visualforce Pages: Visualforce Componets (Tags) Library Part IIIStatic Resources1.Static ...
随机推荐
- MIZ702N开发环境的准备1
前言 最近由于工作需要开始接手基于MIZ702的硬件平台的Linux的开发,仔细想想,工作这么久,这好像还是我第一次接手嵌入式Liunx相关的工作.这几天拿到开发板,开始了阅读文档.安装Ubuntu虚 ...
- 代工黑马,纬创如何强吞iPhone?
现在,智能手机市场非常得意兴阑珊,以苹果为首的最强大脑似乎再也想不出什么好的创意,iPhone7也只不过是旧机种的翻新款式,看上去跟一块板砖.一块镜子差不多:软体方面则出现了大批的"过度 ...
- 探究 Go 语言 defer 语句的三种机制
Golang 的 1.13 版本 与 1.14 版本对 defer 进行了两次优化,使得 defer 的性能开销在大部分场景下都得到大幅降低,其中到底经历了什么原理? 这是因为这两个版本对 defer ...
- 初学Qt——程序打包(环境vs2012+qt5.1.0)
说来可笑,网上那么多的教程,偏偏结尾的时候就没有一个能详细的讲下关于程序的发布.开发Qt是这样,刚开始做web也是这样,因为是自学的,所以都没人可以教下,结果到了项目完成的最后总是要花费成吨的时间去查 ...
- mysql数据库笔记0
mysql数据库笔记0 一次性添加多行数据 例如: INSERT INTO students (class_id, name, gender, score) VALUES (1, '大宝', 'M', ...
- 从0到1,本地到远程git程序过程
从0到1,本地到远程git程序过程 切记一定要在需要提交代码的文件夹下git init,既是你使用了什么 tortoisegit什么工具,或者你在idea环境下已经add了,但是仍然需要你在当前文件夹 ...
- 绕过Referer和Host检查
1.我们在尝试抓取其他网站的数据接口时,某些接口需要经过请求头中的Host和Referer的检查,不是指定的host或referer将不予返回数据,且前端无法绕过这种检查 此时通过后端代理解决 在vu ...
- Vue双向绑定的实现原理系列(三):监听器Observer和订阅者Watcher
监听器Observer和订阅者Watcher 实现简单版Vue的过程,主要实现{{}}.v-model和事件指令的功能 主要分为三个部分 github源码 1.数据监听器Observer,能够对数据对 ...
- Java基础--Arrays类
Arrays工具类:用来操作数组(比如排序和搜索)的各种方法 常用方法: 使用二分法查找 Arrays.binarySearch(int[]array,int value); 数组内容转换成字符串的形 ...
- Python爬虫 抓肺炎疫情实时数据
数据下载 网上一搜,首先搜到的是腾讯的疫情实时追踪,那就用这个数据源吧. 有了网址怎么抓数据呢?这里,可以从纷乱中找到最靠谱的下载方式.我习惯用FireFox浏览器,下面的讲解就以FireFox为例( ...