Developers are getting below error when they are trying to query ProcessNodeId on Salesforce Object ‘ProcessInstanceHistory’. I have received so many Comments and emails regarding the same. So I thought to write a post for this. I hope this would save lots of time of my friends developers.
No such column 'ProcessNodeId' on entity 'ProcessInstanceHistory'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.
Some of the Columns of ProcessInstanceHistory were avaialbe from Summer’16 Release.
Change the API Version of Apex class to Summer’16 Release(V35) or later.