Automatisere brukstype for program for bestillinger med utløsere
Forenkle opprettelse av bestillinger i Revenue Cloud ved å fylle ut feltet Application Usage Type (Programbrukstype) automatisk ved å bruke en Apex. Dette feltet etablerer programkonteksten for posten. Revenue Cloud fyller automatisk ut dette feltet for bestillinger opprettet fra tilbud eller for bestemte bestillingstyper, som å legge til, endre, fornye eller avbryte, men selgerne oppga denne verdien manuelt.
Nødvendige utgaver
Tilgjengelig i Lightning Experience
Tilgjengelig i Enterprise, Unlimited og Developer Edition i Revenue Cloud der Transaksjonsbehandling er aktivert
Eksempel på Apex for programbruk
Bruk dette kodeeksempelet til å fylle ut AppUsageType-feltet med 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;
}
Hjalp denne artikkelen med å løse problemet ditt?
La oss få vite det slik at vi kan forbedre!
Laster
Salesforce Help | Article
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
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
Always Active
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
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
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.