How to retrieve list of sandboxes via API?
A real impediment to the automation is the fact that we cannot programmatically get a list of sandboxes. We have a very real need to retrieve the list of active sandboxes through the API (not via graphical user interface). Example: a user leaves the company. We have 45 active sandboxes.
What does a sandboxprocess do on sandboxinfo?
A create operation on SandboxInfo represents creation of a new sandbox, and an update represents refresh of an existing sandbox. For every creation or update, a SandboxProcess is automatically created and is used for monitoring the sandbox copy process. This object is available in API version 35.0 and later.
How to delete sandbox in Salesforce tooling API?
To delete a sandbox, delete the SandboxInfo record that represents the sandbox. Deleting the SandboxInfo record deletes the sandbox and frees up a license. Sorry, the document you are looking for doesn’t exist or could not be retrieved.
What is reference to apex ID in sandbox?
A reference to the ID of an Apex class that runs after each copy of the sandbox. Allows you to perform business logic on the sandbox to prepare it for use. You can specify this value only during sandbox creation. The class must extend the System.SandboxPostCopy interface.
How to get the org name in sandbox Dev?
In the sandbox named DEV, if you change the Organization Name to Acme Inc. (DEV) you could then query for the org name and use it as you need within your code. Update: It is also possible to get the org name from the UserInfo class eliminating the need for a query: UserInfo.getOrganizationName ();
Are the IDS the same in full sandbox?
As far as i know Ids are same in Full sandbox and production only. First make sure you have full sandbox ! But if you have created anything on production and sent it to full sandbox then Ids are identical. Let me know if i am correct and getting your problem .
How to retrieve sandbox list from Salesforce App?
We did find a “sort of work-around” to retrieve the current list of Sandbox names from production. We found this Salesforce app called “Environment Hub”. Now that we installed this in our production org, we have a table that we can query which holds all the sandbox names.