De berekende insight Telling van open cases per voertuig aggregeert het aantal open klantcases voor een specifiek voertuig en groepeert deze op jaar, kwartaal en maand. De insight houdt rekening met onopgeloste cases en biedt inzicht in de oplossing van klantcases.
Vereiste editions
Beschikbaar in: Enterprise, Unlimited en Developer Edition
Hier volgt een analyse van de logica.
Expressie
Beschrijving
SELECT COUNT(ssot__Case__dlm.ssot__Id__c) AS
TotalCases__c
Extraheert de ID's van alle cases, berekent de totale telling en wijst hieraan een alias TotalCases__c toe.
ssot__Vehicle__dlm.ssot__VehicleIdentificationNumber__c AS VIN__c
Extraheert het voertuigidentificatienummer uit het voertuigobject en wijst hieraan een alias VIN__c toe.
quarter(ssot__Case__dlm.ssot__CreatedDate__c) as
Quarter__c
Extraheert de kwartaalgegevens uit de Aanmaakdatum van de caserecords en wijst hieraan een alias toe als Kwartaal__c.
year(ssot__Case__dlm.ssot__CreatedDate__c) as
Year__c
Extraheert de jaargegevens uit de Aanmaakdatum van de caserecords en wijst hieraan een alias toe als Year__c.
month(ssot__Case__dlm.ssot__CreatedDate__c) as
Month__c
Extraheert de maandgegevens uit de Aanmaakdatum van de caserecords en wijst hieraan een alias toe als Month__c.
FROM ssot__Case__dlm JOIN ssot__Vehicle__dlm ON
(ssot__Case__dlm.ssot__AccountId__c =
ssot__Vehicle__dlm.ssot__CurrentOwnerId__c)
Voegt de voertuig- en caseobjecten samen door het veld Account-ID van een caserecord te koppelen aan het veld Huidige eigenaar-ID van een voertuigrecord.
WHERE ssot__Case__dlm.ssot__CaseStatusId__c =
‘New’
Past de filtervoorwaarde toe om alleen rekening te houden met de cases met de status Nieuw.
GROUP BY VIN__c, Quarter__c, Year__c,
Month__c
Groepeert de resultaten op voertuigidentificatienummer, maand, kwartaal en jaar.
Heeft dit artikel uw probleem opgelost?
Laat ons weten wat we kunnen doen om te verbeteren!
Wordt geladen
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.