function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Edward chanEdward chan 

Want to show the ID

Hi,
How can I adjust the below column to show the current OrganizationId of my cloud?

<apex:column headerValue="test">
<apex:outputText > value="getOrganizationId()"</apex:outputText>
</apex:column>

RoyGiladRoyGilad
Hi,
You could use a formula field using:
$Organization.Id

Or in Apex:
UserInfo.getOrganizationId
Edward_chanEdward_chan
Thanks. Is there one way to show such ID by adjusting my codes above?

Can I have more details to do this in Apex?
ManjunathManjunath
Hi,
Try this.
<apex:outputText > value="{!$Organization.Id}"</apex:outputText>

Regards,
Edward_chanEdward_chan

Many thanks. After we've got this Id, how to further retrieve the relevant records of our cloud through the database link we've created to directly access cloud, using this Id?