Dev401-011: Building Business Processes that You Want

Course Objectives
1.Describe the capabilities of data validation rules
2.Create an approval process.
3.Describe when to user parallel approvers.
4.List user cases for skipping steps within approval processes.
5.Explain how to use time-based workflow to keep processes moving.
6.List Tools for troubleshooting automated processes.

Course Agenda
1.Building Business Processes
2.Preserving Data Quality
3.Automating Business Processes
4.Auditing Processes
6.List tools for troubleshooting automated processes.

Module Objectives
1.List typical business requirement in the area of business processes.
2.List some feathers of the Force.com platform that help you implement business processes.
3.Describe how the VLOOKUP function can be used to solve a business requirement.
4.Describe how the ERGEX function can be used to solve a business requirement.
5.Describe how the ISCHNAGED, ISNEW, and PRIORVALUE functions can be used to solve a business requirement.

Typical Business Requirement
1.Preserving data quality
- Example:As new positions are entered, Universal Containers would like to ensure that the appropriate field are filled out.
2.Automating processes
- Example: Positions must be approved before recruiters start recruiting from them.
3.Keeping processes from getting "Stuck"
- Example: A position open for more than 30 days without candidates triggers an email to recruiter to jump start recruitment procedures.
4.Keeping systems in sync
- Example:Outbound messages help keep Salesforce in sync with other systems.
5.Auditing
- Example: Track any changes to the ranking of a candidate.

Features of the Force.com Platform
1.There are a number of features that address and automate management of these business requirements including:
- Formula fields
- Validation rules
- Approval Processed
- Time-Dependent Workflow
- Outbound mesaging
- Field History Tracking
- Setup Audit Trail

Userful Operatiors and Functions
1. ISCHANGED 
- Compares the value of a field to the previous value and returns TRUE if the values are different, If the values are the same, this function returns FALSE.
- Example: prevent users from changing the Pay Grade of a position after it's been approved.
2.PRIORVALUE
- Returns the previous value of a field.
- Example:as negotiations take place, HR would like to track changes to the salary listed on the offer.
3.IF 
- Determines is expressions are true of false. Returns a given value if true and another value if false.
- Example: If the offer expiration date is less than today and the offer status is set to sent, display "Follow Up on Offer," otherwise, the field should be blank.
4.ISNEW
- Checks if the formula is running during the creation of a new record and returns TRUE if it is. If an existing record is being updated, this function returns FALSE.
- Example:Ensure that hiring managers don't back date the open date on a position to increase it's perceived urgency, by using ISNEW and checking whether the Open Date < Today().
5.ISPICKVAL
- Determines if the value of a picklist field equal to a string you specify.
- Example: Use in conjunction with IF to test if the status of an offer is accepted if so, show the Actual Salary* 10% to calculate a bonus amount, otherwise display no value. 
- IF (ISPICKVAL(Stauts, "Accepted"). ROUND(Actual_Salary__c*0.1.2),0)
- Note: ISPICKVAL is not used alone. It must be used any time that you're referring to afield that is a picklist(except when using the CASE function).
6.REGEX
- Compares a text field to a regular expression and returns TRUE if there is a match. Otherwise, it return FALSE. A regular expression is a string used to describe a format of a string according to certain syntax rules.
- Example: Check to make sure that the social security number of a candidate matches a regular expression representing a valid social security number in the correct format.
7.VLOOKUP
- Reurns a value by looking up a related value on a custom object similar to the VLOOKU() Excel function.
- Note: this formula checks against a key and returns a value from that key.
- Example: Check the state and zip code entered on a record against a table of states and zip codes (key) to ensure that state and zip code match (returns the value).
8.ISNUMBER
- Determines is a text value is a number and returns TRUE if it is. Otherwise, if returns FALSE.
- Example: Check to make sure the contract number for a contractor in temporary position is strictly numerical digits.
9.CASE
- Checks a given expression against a series of values. If the expression is equal to a value, returns the corresponding result. If it is not equal to any values, it returns the else_result.
-Example:Use CASE to evaluate the number of days that a position is open, and display a value depending on the result. For positions open 1 week, display "Maintain","For positions open 4 weeks, display "Assign Task," etc

10.IMAGE
- Insert an image with alternate text height/width specifications.

- Example:If status is "escalated," show a red flag, if status is "Under Review," show a yellow flag, if status is "All Clear" show a green flag.
 

Useful Operators and Functions
1.Functions for encoding
- HTMLENCODE
- JSENCODE
- JSINHTMLENCODE
- URLENCODE
2.These functions make it safe to insert data that you do not control, such as merge field and url parameters in your custom buttons,links,Visualforce pages, and s-controls.

3.The encoding functions escape or replace characters that are reserved or unsafe in HTML, javaSscript, and URLs.
 

Exercise 1-1: Creating Formula Fields to Display Images
1.Goal:
- Build a formula field that displays an image.
2.Scenario:
- Universal Containers would like to add a visual indicator of the Rating on a job application. Job Applications with a high rating should display a green flag, a medium rating should display a yellow flag, and a low rating should display a red flag.They can take advantage of a number of sample image available on the Salesforce servers. For a listing of those images, please see the "!00 Sample Formula Fields" document available http://success.salesforce.com.
Tasks:
- Create a new formula field to show area, yellow or green flag on a job application record,depending on the Average Review Score.
- Add the new Rating field to the Job Application related list on the Position page layout.

What are debug Logs?
1.The debug log records errors and system processes that occur in your organization. debug logs contain information about:
- database changes
- Automated workflow processes, such as:
.Workflow Rules.Validation rules
.Assignment rules.Request-response XML
.Escalation rules.Apex script errors
.Approval process.Resources used by an Apex script

.Auto-response rules
 

System Log Categories
1.Validation 
- Includes information about validation rules
2.Call out 
- Includes the request-response XML that the server is sending and receiving from an external Web Service.
3.Apex code
- Includes information about Apex scripts.
4.Apex Profiling
- Includes cumulative profiling information.

System Log Levels
1.Develepors can specify log levels to indicate the level of detail they'd like to capture.
2.Only the Apex code log category uses levels
3.Levels include:
 - Error, Warn, Info
 - Debug
 - Fine, Finer
 - Finest
4.For detailed information about waht is captured at each level, please see Help & Training.

Troubling shooting with the Debug Log
1.Use the debug log any time you're troubleshooting automated actions. For Example:
- A workflow field update doesn't seem to be updating. It may be the case that the field update  isworking, but an Apex trigger is overwriting the update.
- A record submitted for approval is not routed to the user that you expected. If there are multiple approval processes on a single object, it may be the case that your record meets the criteria for both, and the order should be changed.

Module Review
1.What actions are tracked in debug logs?
2.What is the maximum number of debug logs retained for an organization?
20
3.Where can you find default images to use in formula fields?
Formula
4.What function only works in validation rules?
Look up
5.What type of field and need to be wrapped in function(inside a formula) to be accessed?

Building Applications with Force.com and VisualForce(Dev401)(十):Designing Applications for Multiple Users: Building Business Processes that You Want的更多相关文章

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

  2. Building Applications with Force.com and VisualForce(Dev401)(十一):Designing Applications for Multiple Users: Proseving Data Quality

    Dev401-012:Proseving Data Quality Universal Containers Scenario1.Universal Containers(UC) wants to e ...

  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(Dev401)(十八):Visualforce Pages: Introduction to Visualforce

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

  7. Building Applications with Force.com and VisualForce(Dev401)(十四):Implementing Business Processes:Auditing Processes

    Dev401-015:Implementing Business Processes:Auditing Processes Module Objectives1.list some of the fe ...

  8. Building Applications with Force.com and VisualForce(Dev401)(十二):Implementing Business Processes:Automating Business Processes Part 1

    ev401-013:Implementing Business Processes:Automating Business Processes Part 1 Module Objectives1.Li ...

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

随机推荐

  1. 【WPF学习】第五十三章 动画类型回顾

    创建动画面临的第一个挑战是为动画选择正确的属性.期望的结果(例如,在窗口中移动元素)与需要使用的属性(在这种情况下是Canvas.Left和Canvas.Top属性)之间的关系并不总是很直观.下面是一 ...

  2. LeetCode--二叉树1--树的遍历

    LeetCode--二叉树1--树的遍历 一 深度遍历 深度遍历里面由 三种遍历方式,两种实现方法.都要熟练掌握. 值得注意的是,当你删除树中的节点时,删除过程将按照后序遍历的顺序进行. 也就是说,当 ...

  3. 7-11 jmu-python-分段函数&数学函数 (15 分)

    本题要求计算下列分段函数f(x)的值(x为从键盘输入的一个任意实数): 输入格式: 直接输入一个实数x 输出格式: 在一行中按“f(x)=result”的格式输出,其中x与result都保留三位小数. ...

  4. 7-4 jmu-python-判断是否构成三角形 (10 分)

    7-4 jmu-python-判断是否构成三角形 (10 分)   输入三角形的三边,判断是否能构成三角形.若能构成输出yes,否则输出no. 输入格式: 在一行中直接输入3个整数,3个整数之间各用一 ...

  5. Swift --闭包表达式与闭包(汇编分析)

    在Swift中,可以通过func定义一个函数,也可以通过闭包表达式定义一个函数! 一.闭包表达式 概念 闭包表达式与定义函数的语法相对比,有区别如下: 去除了func 去除函数名 返回值类型添加了关键 ...

  6. getUserMedia API及HTML5 调用手机摄像头拍照

    getUserMedia API简介 HTML5的getUserMedia API为用户提供访问硬件设备媒体(摄像头.视频.音频.地理位置等)的接口,基于该接口,开发者可以在不依赖任何浏览器插件的条件 ...

  7. 浏览器渲染流程&Composite(渲染层合并)简单总结

    梳理浏览器渲染流程 首先简单了解一下浏览器请求.加载.渲染一个页面的大致过程: DNS 查询 TCP 连接 HTTP 请求即响应 服务器响应 客户端渲染 这里主要将客户端渲染展开梳理一下,从浏览器器内 ...

  8. 关于在layui中的table checkbox 默认选中设置

    一.layui版本 layui-v2.4.5 二.设置table的checkbox默认选中 总共有两种方法: 方法1:在返回的json中设置LAY_CHECKED为true,页面上的checkbox就 ...

  9. 01 搭建EasyMock环境

    EasyMock 介绍 EasyMock是一个构建模拟数据的平台,也可以说是一个在线mockJs平台 EasyMock优势 省去配置.安装mockJs步骤,解决多人协作Mock数据不互通问题 不需要在 ...

  10. [IOI1994] 时钟 - 搜索

    考虑九个安排在 \(3 \times 3\) 矩阵中的时钟,每个时钟只会指向 \(3,6,9,12\) 点.有 \(9\) 种操作方式,每种操作方式规定了其固定的操作对象集合,将这几个时钟都往后拨 \ ...