之前学习中直接跟着Trailhead project做了一个实例,没有系统学习,本篇学习Process Builder的概念包含哪些元素能做什么等等基础知识。
组件
The Components of a Process
Every process consists of a trigger, at least one criteria node, and at least one action. You can configure immediate actions or schedule actions to be executed at a specific time.
Process的组件:每一个进程都包含一个触发器,至少一个标准(判断条件)和一个以上操作,其中操作可以配置为立即执行或定时执行。
触发器
对象就是触发器,决定了进程的准入条件,即什么时候执行:
1.当记录改变时(又分为只在记录创建时触发或创建和修改时均触发)
2当收到平台发来的事件消息时
3被其他进程调用
标准(是不是翻译成规则或者判断条件更为合适?)
标准其实就是一个判断条件,判断为True时,执行其后面的动作。为False时跳到下一个节点。所以标准可以设置为
-- Conditions are met. - 添加多个条件,当所有的逻辑条件都满足时
-- Formula evaluates to true - 用公式定义条件,公式返回值为True
-- No criteria-just execute the actions!- 没有条件,直接执行后面的动作)
操作
操作分为立即执行和定时执行。
可执行的操作有
-- Create records.创建记录
--Update the record that started the process or any related record.修改记录
-- Submit that record for approval.提交记录待批准
--Update one or more related records.更新一个或多个相关记录(比如更新客户的相关记录-联系人的信息)
--Send emails using a specified email template.使用指定的模板发送邮件
-- Post to a Chatter feed.发布到Chatter
以上是Trailhead介绍的,在Lightning中发现其实能执行更多的操作,见下图:
-- Apex,其实是执行一个class的功能
--Flow,启动一个Flow
--Processes,启动另外一个进程。
~End~