Return to Snippet

Revision: 30207
at August 10, 2010 03:45 by d3developer


Initial Code
http://bit.ly/cj450K

//Get a reference to the Custom Object and gets its Key
Schema.DescribeSObjectResult result = customObject__c.sObjectType.getDescribe();

//navigate to the View Page
PageReference pageRef = New PageReference('/' + result.getKeyPrefix() + '/o');
pageRef.setRedirect(true);
return pageRef; 

Initial URL

                                

Initial Description

                                

Initial Title
boyd_r URL Navigation for Custom Objects

Initial Tags

                                

Initial Language
Other