您在此处:
用例:使用 If 条件根据复杂逻辑显示内容
使用如果条件屏幕元素动态显示内容或屏幕。例如,您可以使用 If 条件添加页脚,该页脚根据之前的选择导航到不同的屏幕。通过如果条件屏幕元素,Salesforce 会按顺序评估一个或多个条件,并在条件评估为真时显示内容。如果条件为假,逻辑将返回其他预配置内容。与切换条件逻辑不同,如果条件逻辑通过使用 AND 和 OR 逻辑运算符组合条件来支持复杂条件。

使用更普遍的搜索词。
选择更少的筛选器,并扩大搜索范围。
使用如果条件屏幕元素动态显示内容或屏幕。例如,您可以使用 If 条件添加页脚,该页脚根据之前的选择导航到不同的屏幕。通过如果条件屏幕元素,Salesforce 会按顺序评估一个或多个条件,并在条件评估为真时显示内容。如果条件为假,逻辑将返回其他预配置内容。与切换条件逻辑不同,如果条件逻辑通过使用 AND 和 OR 逻辑运算符组合条件来支持复杂条件。
| 查看支持的版本。 | |
本文适用于:
|
增强 WhatsApp 渠道,Unified WhatsApp |
本文不适用于:
|
增强应用程序内聊天、增强 Web 聊天、标准和增强 Facebook Messenger、标准和增强 SMS、增强 Apple Messages for Business、增强 LINE 以及自带渠道 |
| 所需用户权限 | |
|---|---|
| 要创建消息传递组件: | 自定义应用程序权限和查看设置和配置权限 或者 系统管理员 |
| 要在消息中发送和接收消息: | 消息传递客服人员 |
为了说明如何使用如果条件屏幕元素,请考虑以下示例。您是兽医医院 Healthy Pets 的 Salesforce 管理员。您的工作是更新 WhatsApp 流的最后一个屏幕,以包含计划的兽医预约的摘要。
摘要必须遵循此格式:
博士 <doctor_name> 期待着与您的 <animal_type> 会面 <visit_type>。如果您有任何问题,请随时联系我们。
使用 If 条件,根据走访类型(亲自或视频通话)和动物类型显示不同消息。Catalina 博士仅处理猫的亲自走访。Virtuoloso 博士处理所有其他访问,虚拟或亲自,为任何其他类型的动物。
本示例假设您已经创建了基于 Apex 类的表单消息传递组件,并创建了流格式。




We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.