function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
There are 2 ways to get Org Id in a Visualforce Page.
1. {!$Organization.Id}(link (https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_variables_global_organization.htm)) - You can either directly use this in the VF page or in your VF Page javascript to get the Org Id
2. In case you require it in the VF Page Apex controller you can use UserInfo (https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_userinfo.htm) Class and use getOrganizationId() method to get the org Id.
Hope this helps,
Sandeep