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
Pankaj PPankaj P 

Can we fetch Initial Submitters for an Approval process in Apex code?

I am struggling to find a way to check if my current logged in user is present in Intial Submitters list in an approval process for object xyz so that on my custom visual force page (which allows to submit the records for approval) I can hide the Submit for approval button and show a friendly message to user that they cannot submit. 
Salesforce shows quite ugly message : 
User-added image
I got to know that ProcessDefinition (https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_processdefinition.htm?search_text=approval) id the object that holds information about individual approval process but does not contain initial submitters or more information. 

Is that possible to fetch in Apex code? any other way?

Much appreciate your time and any of your inputs on this :)