You need to sign in to do that
Don't have an account?

How can I add Opportunity ID to another page reference
I am trying to pass opportunity Id from one class to another class and I thought of doing it through URL , but I dotn know how I can add that
Opport Id to this
Opport Id to this
PageReference opptyPage = new ApexPages.StandardController(opportunity).view(); opptyPage.setRedirect(true); return Page.PBXOrdering + opptyPage;
I think you are trying to pass a parameter.
For your case try this:
opptyPage.getParameters().put('id','insertIDHere');
Best regards,
Baktash Hossainzadeh