Skip to main content
vfirstname vlastname (LeanData Inc.) 님이 #Apex에 질문했습니다
Hi,

can I retrieve all the sandbox ids given a production org id?The use case is that our company has a list of customers which we don't want to upgraded.we need to exclude their production and sandboxes during the "push upgrade"  in release.
답변 4개
  1. 2024년 2월 14일 오후 2:13

    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

0/9000