Skip to main content

Entitlement Processes for Salesforce


Entitlement for the cases gives you automated solution for the SLA's. To overcome user’s manual work and automate business processes to send notifications on escalations within response times.

We will go step by step to configure the Entitlements as Below.
1.       Search ‘Entitlement Settings’ from Quick search.





It’ll enable Entitlement Process for your org.

2.       Now Go to ‘Milestones’. Create new Milestone.
Example – Let’s say, Priority field on Case has values as Low, Medium and High. If Case has SLA as
A.      If Priority is ‘Medium’ on case and the case is not Closed in next 8 hrs then it will escalate and send the Email notification.
B.      If Priority is ‘High’ on case and the case is not Closed in next 4 hrs then it will escalate and send the Email notification.
In above case, we are going to create two Milestones for Medium and High Priority. This will represent Time-dependent steps in Case resolution times.
3.       Now, setting up of Business Hours in your org. All the entitlements will depend on the Business hours to calculate the time, you need to setup according to your requirements.




Here I have setup for Indian Business Hours, kept 24hrs for all 7 days and If you have any Holidays then setup accordingly.

4.       Here comes, Entitlement Process setup, go to Entitlement Process and Create New Entitlement Process.


Entitlement Process Name – Specify name for entitlement.
Case enters the process - Based on Case created date – The calculations will be calculate from Created Date.
Case exits the process - Based on custom criteria - Case: Closed EQUALS True
Once the case is closed all the milestones will be completed.
                Entitlement Process Business Hours – Select required business hours which we have created in step 3.
5.     Now, in Milestone section, Click on new and setup as shown below.

Milestone Name – Select Milestone from list which you have created. Here we have only created Medium and High.
Time Trigger (Minutes) – Here we have 8 Hours milestone for Medium. So in minutes it will be 8*60 =480 minutes.
Milestone Business Hours – Specify business hours.
Violation action – I have created simple email notification here, once the milestone violated after 1 min the action will be triggered.
Same as Violation action, we also have Warning and Success action.

6.     Here comes the important part, Now go to entitlement object and create record as follows.

Here the highlighted Business Hours and Entitlement Process are so important else the milestones won’t get created on Case.

7.     Now to create Milestones for Case, first case need to attach with the above Entitlement record. For this you can use Before Insert trigger to attach the Entitlement record to the Case record Or you can manually select entitlement from lookup on Case while creating Case.

8.     It’s time to create a Case, to check if this works or not. So I am creating case with Priority as ‘Medium’, After creation, the milestone should be created.


So the Medium Milestone has been created.


Note : If you want to edit criteria for Milestone setup in Entitlement process, then directly it won’t possible. You need to create new version of Entitlement and then edit the criteria.
After creating new version, don’t forget to attach it to Entitlement record, else milestones will be behave as per old entitlement process.

Comments

Popular posts from this blog

Salesforce UNABLE_TO_LOCK_ROW: unable to obtain exclusive access to this record

Unable to lock row - Record currently unavailable errors Description When a record is being updated or created, we place a lock on that record to prevent another operation from updating the record at the same time and causing inconsistencies on the data. These locks normally last for a few seconds and when the lock is released, other operations can do whatever processing they are supposed to do on the record in question. However, a given transaction can only wait a maximum of 10 seconds for a lock to be released, otherwise it will time out. Resolution What and when records get locked depends on the operation you are performing and the main record you are working on. The  Force.com Record Locking Cheatsheet   provides detailed information on this and it's highly recommended that you familiarize yourself with its contents. Common Scenarios that prevent unlocking record a. Email-To-Case When an email is processed by email-to-case, triggers on the email message

How to Build a Basic Salesforce REST API (With Test Class)

How to Build a Basic Salesforce REST API (With Test Class) and Test with POSTMAN Salesforce : Creating Anonymous Apex REST APIs with Force.com The Force.com REST API lets you integration with Force.com applications using standard HTTP methods. This API provides a way to expose the data you have within your Force.com application to external applications – both mobile and non-mobile. A few useful bits of information related to these REST APIs: This sample Code you how to implement a simple REST API to fetch Account in Apex class: @RestResource(urlMapping='/Account/*') global with sharing class MyRestResource { @HttpGet global static Account doGet() { RestRequest req = RestContext.request ; RestResponse res = RestContext.response ; String accountId = req.requestURI. substring ( req.requestURI. lastIndexOf ( '/' ) +1 ) ; Account result = [SELECT Id, Name, Phone, Website FROM Account WHERE Id = : account

Salesforce Callout using Future Method

Hi All, Today's topic , Use of Future method in web services callout. Consider one scenario, Whenever ,We create one Account record or Edit a Account record using UI, Populate Billing city based on Billing Zipcode . Like Below image before save, After Press the save button,Billing city should auto populate. We want to populate Billing city based on Billing zipcode using below API endpoint. Postal PIN Code API Postal PIN Code API allows developers to get details of Post Office by searching Postal PIN Code or Post Office Branch Name of India. It has following format:         1. Get Post Office(s) details search by Postal PIN Code             http://postalpincode.in/api/pincode/{PINCODE}         2.Get Post Office(s) details search by Post Office branch name            http://postalpincode.in/api/postoffice/{POSTOFFICEBRANCHNAME} Postal PIN Code API returns the response in JSON format. "Status" field in response is set to SUCCESS or ERROR, "