위치:
트리거를 사용하여 주문에 대한 신청 사용 유형 자동화
Apex 트리거를 사용하여 응용 프로그램 사용 유형 필드를 자동으로 채워 Revenue Cloud 주문 생성을 간소화합니다. 이 필드는 레코드에 대한 응용 프로그램 컨텍스트를 설정합니다. Revenue Cloud 견적서에서 생성된 주문 또는 추가, 수정, 갱신 또는 취소와 같은 특정 주문 유형에 대해 이 필드를 자동으로 채우지만 판매 담당자가 이 값을 수동으로 입력했습니다.

더 일반적인 검색 용어를 사용하십시오.
필터 수를 줄여 검색 범위를 확장하십시오.
Apex 트리거를 사용하여 응용 프로그램 사용 유형 필드를 자동으로 채워 Revenue Cloud 주문 생성을 간소화합니다. 이 필드는 레코드에 대한 응용 프로그램 컨텍스트를 설정합니다. Revenue Cloud 견적서에서 생성된 주문 또는 추가, 수정, 갱신 또는 취소와 같은 특정 주문 유형에 대해 이 필드를 자동으로 채우지만 판매 담당자가 이 값을 수동으로 입력했습니다.
| 제공 제품: Lightning Experience |
| 사용 가능 제품: 트랜잭션 관리가 활성화된 Revenue Cloud의 Enterprise, Unlimited 및 Developer Edition |
이 샘플 코드 조각을 사용하여 AppUsageType 필드를 RevenueLifecycleManagement로 채웁니다.
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.