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
mandycmandyc 

Best way to query data in different SF org

Hi All,

I would like to create a VF table dashboard component that includes metrics from a different Salesforce organization. I would like to hear how other people are doing this or how others would propose I do this.

I'm contemplating creating a rest service in the org that I'm looking to pull data from and then calling that from the requesting org. Is this the best approach? Does anyone have an example they can share?

Thanks much!
Satish_SFDCSatish_SFDC
REST is a good approach here.
You can create your own REST webservice or use the REST API to query data in your org.

Regards,
Satish Kumar