You need to sign in to do that
Don't have an account?
GrantM
Retrieve contactid from User
Hi
I am trying to retrieve the contact a logged in user is attached to.
When querying through the API Explorer, i can retrieve the details i require:
Select Id, ContactId From User WHERE Id = '[LOGGED_IN_ID]'
However, trying this in an s-Control returns a null queryResult
SearchString="Select Id, ContactId From User WHERE Id = {!$User.Id}";
var queryResult = sforceClient.Query(SearchString);
Removing ContactId out of that query fixes the issue.
How can i retrieve the ContactId attached to a user account that is currently logged in through an S-Control?
There is a contact id on the SelfServiceUser object. Is this what you are trying to do?
Select Id, ContactId From SelfServiceUser Where Id = '<id of logged in user>'
Message Edited by DevAngel on 05-15-2007 09:52 AM