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的更多相关文章

  1. 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 ...

  2. 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. ...

  3. 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 ...

  4. 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 ...

  5. 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 ...

  6. 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 ...

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

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

  8. 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 ...

  9. 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 ...

  10. 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 ...

随机推荐

  1. “一亿”的教训:一次Google信箱诈骗是如何得手的?

    网络诈骗是指以非法占有为目的,利用互联网采用虚构事实或者隐瞒真相的方法,骗取数额较大的公私财物的行为.一年比一年网络诈骗越来越高手段,可以说是日益猖獗.在这里提醒一次各位朋友一定要注意自己的网络安全. ...

  2. 关于C++类中的三兄弟(pretect、private、public)

    1.public修饰的成员变量 在程序的任何地方都可以被访问,就是公共变量的意思,不需要通过成员函数就可以由类的实例直接访问 2.private修饰的成员变量 只有类内可直接访问,私有的,类的实例要通 ...

  3. 在Linux上显示正在运行的进程的线程ID

    在Linux上显示正在运行的进程的线程ID 在上Linux," ps -T"可以显示正在运行的进程的线程信息: # ps -T 2739 PID SPID TTY STAT TIM ...

  4. css自定义 range radio select的样式滑轮,按钮,选择框

    写在前面: 之前踩坑css的时候,遇到滑轮,按钮,选择框这类型的东西,为了页面效果,总是需要自定义他们的样式,而不使用他们的默认样式.当时写的时候,我也是蛮头疼的,弄了个demo,链接在下面.对此做个 ...

  5. Electron打包H5网页为桌面运行程序

    一.安装配置环境 Electron(一种桌面应用程序运行时),Electron 把 Chromium 和 Node 合并到一个单独的运行时里面,很适合开发桌面 web 形式的应用程序,通过Node它提 ...

  6. 网络流媒体协议的联系与区别(RTP RTCP RTSP RTMP HLS)

    目录 网络流媒体协议的联系与区别(RTP RTCP RTSP RTMP HLS) 简结 RTP RTCP RTSP 区别与联系 RTSP.RTMP.HLS 区别与联系 关于直播 流媒体各协议层次图 基 ...

  7. apache搭建Tomcat集群(Cluster)

    搭建集群: apache:特点处理静态资源(html  图片  js等) apache的请求操作,Cluster工具 tomcat:特点处理动态资源 apache+tomcat(apache是web服 ...

  8. React的路由react-router

    意思是:当你写一个web应用时候,应噶install的是react-router-dom,同样的,当你想写一个Native应用时候,需要install的是react-router-native,这两个 ...

  9. 03 HDFS的客户端操作

    服务器和客户端的概念 hdfs的客户端有多种形式 1.网页形式 2.命令行形式 3.客户端在哪里运行,没有约束,只要运行客户端的机器能够跟hdfs集群联网 参数配置 文件的切块大小和存储的副本数量,都 ...

  10. flask 链接mysql数据库 小坑

    #config.py MYSQL_NAME = 'root' MYSQL_PASSWORD = 'zyms90bdcs' MYSQL_HOST = 'xxxx' MYSQL_POST = ' MYSQ ...