6

I am currently able to login inside salesforce using just a session id https://eu5.salesforce.com/secur/frontdoor.jsp?sid=sessionId

I now want to be able to redirect to a record page by passing 1 additional parameters &retUrl=/0032400000GRVvYAAX

Can anyone help with this?

1
  • What's not working?
    – superfell
    Feb 12 '17 at 19:05
5

It works pretty much as you've suggested. Send the users browser to:

https://eu5.salesforce.com/secur/frontdoor.jsp?sid=sessionId&retURL=%2F0032400000GRVvYAAX

Remember to URL encode the forward slash in the retURL parameter.

As Rahul Sharma commented, check the casing of retURL as well. The casing needs to match exactly.

5
  • 1
    It even works with &retURL=/0032400000GRVvYAAX, could be due to fact that retURL is case sensitive!
    – Raul
    Feb 12 '17 at 19:11
  • 1
    @RahulSharma The casing on the ID given does appear to be correct for the AAX suffix in this case. Feb 12 '17 at 19:13
  • 1
    Sorry, I meant parameter name retURL is case-sensitive not the Id or value. So, encoding is good to have but is not a problem in this example.
    – Raul
    Feb 12 '17 at 19:15
  • 1
    @RahulSharma Ah yes, good point! Feb 12 '17 at 19:16
  • 1
    Also, outlined in KA 000193348.
    – sfdcfox
    Feb 13 '17 at 3:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.