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
Karthikeyan RamamoorthyKarthikeyan Ramamoorthy 

<apex:page StandardController="opportunity"> <apex:form > <apex:commandButton action="{!URLFOR($Action.Opportunity.Share, Opportunity.Id)}" value="Create New Object"/> </apex:form> </apex:page>

While saving the vf page
"<apex:page StandardController="opportunity">
<apex:form >
<apex:commandButton action="{!URLFOR($Action.Opportunity.Share, Opportunity.Id)}" value="Create New Object"/>
</apex:form>
</apex:page>"
It throws me this error. What Am I Missing?
Nilesh JayswalNilesh Jayswal
Can you please share the error here?
GauravendraGauravendra
Hi Karthikeyan,

For me its working fine.
Make sure you are passing the correct id of opportunity in the url after loading the vf page.