How can we query an Entitlement Process through Apex
Actual Object name to access from API is SlaProcess and in UI it is EntitlementProcess Ideally Account will linked with Entitlement and Entitlement is linked with SlaProcess (aka EntitlementProcess). So your query to get AccountId based on Entitlement and SlaProcess will be: