- I have integrated with the .net and I want the profile name from the login result. Is there any possible?
Question 2:
- When we query the opportunity record in c#, i want the modified user name. so how to get the modified user name.
Note: I got the modified-user id only. so how to get the username without query the user object.
Best Answer
Once you have a session you can call
getUserInfo()
. In the getUserInfoResult there is theprofileID
in the response.Now that you have the profileId you can send a SOQL query off to Profile to get the Name field.
When performing a SOQL query against Opportunity you can get the last modified user name with
LastModifiedBy.Name
. E.g.