You need to sign in to do that
Don't have an account?

company name
Hi,
Is there a quick way that i can get the company name of the user using this part of my controller or do i have to create another variable and soemhow add it to that?
I was wodnering if there was a way in being able to pull the information from the system.userinfo field?
public with sharing class CaseExtension { public Case mycase {get; set;} public User localUser {get; set;} public String route {get; set;} public CaseExtension(ApexPages.StandardController stdController) { this.mycase = (Case)stdController.getRecord(); localUser = [SELECT Id, Phone, Email, FirstName, LastName from User where Id =: System.UserInfo.getUserId() LIMIT 1]; this.mycase.OwnerId = localUser.Id; }
Thanks for any help in advance!
This should cover it
SELECT CompanyName FROM User
There is a field on the User record called CompanyName
All Answers
This should cover it
SELECT CompanyName FROM User
There is a field on the User record called CompanyName
Thanks!!
I just couldn't work out what the field was called!