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 get Product releted Entitlement Via SOQL

I have  Entitlement Template Releted list on product . I need to fetch Product With entitlement ,How can i do that .
Thank you
Deepika GulatiDeepika Gulati

Hi Lukesh 

You can use ProductEntitlementTemplate object to query both product and entitlement template. 

Below is the query : 
SELECT CreatedById,CreatedDate,EntitlementTemplateId,Id,Product2Id,SystemModstamp FROM ProductEntitlementTemplate

Hope this helps. 



Lukesh KarmoreLukesh Karmore
Hii Deepika Thanks for your reply
your query returns me  EntitlementTemplateId  releted to product ,
But i need EntitlementProcess Id releted to product we added it through Entitlement Template Related list.  
if you have hay idea about it then  please reply
Thank you