您在此处:
使用触发器自动化订单的应用程序使用类型
通过使用 Apex 触发器自动填充应用程序使用类型字段,简化 Revenue Cloud 中的订单创建。此字段建立记录的应用程序上下文。虽然 Revenue Cloud 会自动为从报价创建的订单或特定订单类型(例如添加、修改、续订或取消)填充此字段,但销售代表会手动输入此值。

使用更普遍的搜索词。
选择更少的筛选器,并扩大搜索范围。
通过使用 Apex 触发器自动填充应用程序使用类型字段,简化 Revenue Cloud 中的订单创建。此字段建立记录的应用程序上下文。虽然 Revenue Cloud 会自动为从报价创建的订单或特定订单类型(例如添加、修改、续订或取消)填充此字段,但销售代表会手动输入此值。
| 适用于:Lightning Experience |
| 适用于启用了事务管理的 Revenue Cloud 的 Enterprise、Unlimited 和 Developer Edition |
使用此示例代码片段,以使用 RevenueLifecycleManagement 填充 AppUsageType 字段。
trigger RlmOrderTriggerSample on Order(after insert) {
List<AppUsageAssignment> assignments = new List <AppUsageAssignment>();
for (Order ord: Trigger.New) {
// Do further filtering as necessary
AppUsageAssignment aua = new AppUsageAssignment(
RecordId = ord.Id,
AppUsageType = 'RevenueLifecycleManagement'
);
assignments.add(aua);
}
insert assignments;
}
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.