function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Lukesh KarmoreLukesh Karmore 

How to Fetch product releted Entitlement Process

How to Fetch product releted Entitlement Process . Let say I have one Entitlement process called 'Premium support ' . I added it to product via Entitlement template . so i need to fetch it . any one have idea , i need product id  and Entitlement process Id .



Thank you
Shruthi ChandrasekaranShruthi Chandrasekaran
Hello Lukesh,

You can use ProductEntitlementTemplate object to query both Product2Id and EntitlementTemplateId and use them in your other query to the 
EntitlementTemplate object to get the SLAprocessId (Entitlement Process) and SLAProcess.Name(Entitlement Process Name)
SELECT Product2Id, EntitlementTemplateId FROM ProductEntitlementTemplate;

SELECT SLAProcessId, SLAProcessName FROM EntitlementTemplate WHERE Id = :yourEntitlementTemplateId;
Please mark as best answer if this solves your question. Thanks.