You need to sign in to do that
Don't have an account?
modus
How do I pass Session ID and Server URL via link
We currently have a support portal that includes the salesforce.com hosted login page specific to our organization. Eventually we will handle the login via the typical API integration, however, for now I would just like to know the personalization strings necessary to validate a session. I know that the Session ID is {!User_Session_ID}, but what is the string for Server URL?
Thank you,
--modus
Hi modus,
Check out the other available merge fields on the web link page. The fields you need will be defined there.
I looked on the web link page but it was not very helpful either. I am trying to add a link to a lead on my page and I do not want the use to have to log in again. My link looks like
"https://na1.salesforce.com/" + sflead.leadID.toString() + "?sid=" + strFSSession
But this still requires does not work and
"https://na1.salesforce.com/" + sflead.leadID.toString()
requires the user to log in. How can I pass the sessionID I have from the API on the link?
Hi Boston Dave,
Are you trying to pass this info to a jsp or asp page or an scontrol?
Neither. I am writing a servlet that interacts with salesforce in the background through the API, creating and managing Leads and Tasks. I want to be able to display a link on a page that will allow the user to go directly into the salesforce website and view the lead there without having to log in again since I already have the username, password, valid session, valid session url.
Thanks,
David
Hi BostonDave,
Ok, you need to use frontdoor.jsp.
https://na1.salesforce.com/secur/frontdoor.jsp?sid=yoursessionid&retURL=/id_of_the_lead
http://docs.releasenotes.salesforce.com/en-us/winter14/release-notes/security_frontdoorjsp.htm