
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.2 个回答

I was hoping for a way to send out the id using automation whenever the sandbox is refreshed. This way it would all happen automatically. I was looking at ways to do it in the postrefresh sandbox apex class thing, but email is not an option for that.