You need to sign in to do that
Don't have an account?
Denver Greene
Get new org id after sandbox refresh
When I refresh a sandbox the org id changes. This causes links with external systems to break and so they need to be updated. Is there any way for developers to get the org ID automatically, without having to log in to the sandbox? Ideally this would happen in the sandbox post refresh apex class that runs automatically.
I was initially going to try sending an email, but in the post refresh you can only send system emails. I could log in and change the email deliverability settings, but then it can't happen as part of the refresh which is kind of the whole point.
Go to your production and you can able to find the new sandbox ids
1. From Setup, enter Sandboxes in the Quick Find box.
2. Select Sandboxes.
You can able to find the sandbox id after refresh