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
GSP_4SGSP_4S 

Identifying a SF user and account in an S-Control

I'm building a external application that will tie into the SalesForce interface using a S-Control in the hopes of eventually making a public application for the App Exchange.

I'm trying to uniquely identify the account and user of the application using the organization and user ids.

For example:
http://www.myserver.com/main.do?sfo={!$Organization.Id}&sfu={!$User.Id}

This would, of course, return an HTML page that would fill a panel in the SalesForce interface.

Is this a good way to proceed?  Is there a better way to do this?
HarryBHarryB

Maybe check the API docs for the "getUserInfo" call - it will give you much info of the current user and the organization.

Cheers,

Harry

GSP_4SGSP_4S
Thanks for the response.  From the S-Control edit panel I don't see a getUserInfo function call available in the list of functions.  Are you referring to some other mechanism for identifying the user? 

Back to the original question, is there a way of uniquely identifying a user/account from a S-Control request (i.e. in the URL) that is considered "best practices"?