You need to sign in to do that
Don't have an account?
Rashmi27
How to get object instance from URL like https://cs17.salesforce.com/01pg00000004s2u
How to get object instance from URL like https://cs17.salesforce.com/01pg00000004s2u without using following way
Apexpages.currentPage().getHeaders().get('referer').right(15);
Because I am unable to execute the unit test cases.
Is there any other way help appreciated !.........
Cheers!..
Regards,
Satish Kumar
How will either of these get the record id from the end of the URL? Both of these suggestions expect an id parameter on the URL, which the OP has clearly not included.
If its just to make the unit tests work, I would use the Test.isRunningTest method to take some different action. Something like: