You need to sign in to do that
Don't have an account?
ArjunDhar
Account vs Organization
I need to get certain Account details of a User in the Controller.
However I find that the "UserInfo" object does not expose any Account Id. It exposes access to organization name and Id.
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_methods_system_userinfo.htm
Q1) Conceptually how is Account different from Organization? (Where is this documented)
Q2) How can I get access to Account Object from the User (assuming Account & Organization are not the same)
thanks
All Answers
Thanks a lot
I would not have guessed that relation between the objects , unless i did a lot of trial and error with objects.
Where are these listed? I have the dev documentation and I did not find it clearly.
I also have some other (hopefully last) questions:
Q3) The Visual Force GLOBAL variables like $User do not have equivalent in the Controller code. Like "UserInfo". Why so? Object conventions should be consistent (specially the global / context related ones).
..Also, I see standard Objects in the VF > Setup >Customize > [Standard Objects]. Now the Global Naming convention of VF page Objects (e.g. $User) and those you can use in Controllers (UserInfo) and Standard Objects (like Accounts) are inconsistent. So i feel conceptually disconnected. ..or is there a relaion and API reference that explains it? ..Example : Where does "UserInfo" come from? ..so they just magically explicitly inject it into the context?!?
thanks a lot already.
I have the answer to my immediate questions but the additional answers will allow me to search faster through ref material next time.