5

Looking at the new-ish SandboxInfo and SandboxProcess objects I don't see anyway to get the pod name (ie, NA7, CS16, etc). Is there a way to get this information from the ToolingAPI, or do I have to do something like login to each of the sandboxes from the list to get the serverUrl?

I saw this older post which mentions these objects but doesn't quite have the same information that I'm looking for.

4
  • 4
    It would be a bit of a Heath Robinson Solution, but you could using the PENDING_SANDBOX_ORG_ID from the event log file to extrapolate the pod using Converting the Salesforce Pod Id to ServerUrl/Name. People are often negative towards this as a possible solution, but I think it could be made to work here. – Daniel Ballinger Apr 11 '16 at 22:40
  • 3
    The negativity usually comes from the extrapolation breaking when an org is migrated. I don't think that will be a problem for sandbox refreshes. – Daniel Ballinger Apr 11 '16 at 22:43
  • I think the biggest problem with that is having to have the additional entitlement required for the event log to get this information. Additionally, if there are sandboxes that were created longer that the 30 retention cap of the event log then you will not have the data available. – Patrick Connelly Apr 12 '16 at 14:46
  • Yeah, less than ideal. Another Crazy Untested Idea™: Use a SandboxPostCopy event to send the SandboxContext details back to the parent org. I'm not sure if you can make a callout in a post copy context (Remote site settings?), or the best way to authenticate with the production org. It probably also falls into the too many potential problems and too much effort category. – Daniel Ballinger Apr 12 '16 at 19:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.