You need to sign in to do that
Don't have an account?
vish h
How to get the user details from ID stored in string format?
Hi,
I'm new to Salesforce and I want to know how can I get back the user details that I stored ID in string data type. Ex
public class vSFDCuseinfo{
public string auserid {get;set;}
public string aName{get;set;}
public vSFDCuseinfo (){
auserid= UserInfo.getUserId();
aName = auserID.username; // how to get the username (firstname, lastname etc) from ID stored in string format?
}
}
Thanks
Vish
I'm new to Salesforce and I want to know how can I get back the user details that I stored ID in string data type. Ex
public class vSFDCuseinfo{
public string auserid {get;set;}
public string aName{get;set;}
public vSFDCuseinfo (){
auserid= UserInfo.getUserId();
aName = auserID.username; // how to get the username (firstname, lastname etc) from ID stored in string format?
}
}
Thanks
Vish
Here's an example:
Hope that helps,
Clint
All Answers
Here's an example:
Hope that helps,
Clint