I have a visualforce page that will be accessed via a List Button. This VF page relates to the case object and the list button will appear on several object UIs (opportunity, account etc) related lists.
I know how to get the record Id in the parameter but is there a global variable or a method i can use to include the sObjectName/API Name as a parameter?
For example, the location.replace url will look like:
From my understanding if I use a VF page redirect using a standard controller I will receive the parent Id but not the sObject name.
Does anybody know how I can achieve this?