I have the following Visualforce page and controller:
<apex:page standardController="sObject" extensions="ExtensionController">
<div>
{!o.Id}
</div>
<div>
{!o.Name}
</div>
</apex:page>
Controller:
public class ExtensionController{
public SObject o {get;set;}
public ExtensionController( ApexPages.StandardController stdController)
{
this.o = stdController.getRecord() ;
...API CALL...
}
}
I get the following error
sObject does not exist
Is there any way I can do this? My ultimate goal is to be able to include this page in a few objects' layouts.