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
Mel LisauMel Lisau 

How can i get an Organisations Instances from Production?

If i have lets say a Production , SandBox and Developer Edition in Salesforce. Is there a way I can login to one , probably Production and retrieve all instances registered to the Organisation. So logging into Production I can make some sort of ap[i call or apex call that will give me all instances assocaiated to this Organisation. (a link between Prod , Sandbox and Developer)
There is a rest call as follows;
GET /services/data/v40.0/tooling/query/?q=Select+id,SandboxName+from+SandboxInfo
But i am not using rest at the moment , only Soap , can i use an equivalent Soap call ?


Thanks
RituSharmaRituSharma
It's not possible using SOAP API.
Mel LisauMel Lisau
So I guess , Rest call is the only way.  I assume i need to create a Connected App and use that to make my Rest Api calls ?

 
RituSharmaRituSharma
Yes, you will need to use rest api.