
4 respuestas
I found this helpful answer on another thread. Thought i'd pass this along.
"You can test this in DeveloperConsole's Query Editor tab by checking the "Use Tooling API" box below the query pane. However, you'll need to call the api endpoint for real code, as this query does not appear to work directly from Apex. The SandboxInfo object is only available in a production org."
Select Id, SandboxName from SandboxInfo