function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
modusmodus 

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

DevAngelDevAngel

Hi modus,

Check out the other available merge fields on the web link page.  The fields you need will be defined there.

BostonDaveBostonDave

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?

DevAngelDevAngel

Hi Boston Dave,

Are you trying to pass this info to a jsp or asp page or an scontrol?

BostonDaveBostonDave

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

SuperfellSuperfell
search the boards for frontdoor.jsp
DevAngelDevAngel
Rituparn ShindeRituparn Shinde
Please further refer to below 
http://docs.releasenotes.salesforce.com/en-us/winter14/release-notes/security_frontdoorjsp.htm