I am trying to dynamically update the callback url in a connected app.
When creating a sandbox, I want to run an apex class that change the callback URL from a production to UAT callback endpoint.
I am assuming that I would place this in the implements SandboxPostCopy
apex class where I am updating other custom settings to point to lower environments when the sandbox is done copying.
Is there anyway to have the Callback URL in a connected app be dynamic by referencing a custom setting with {!$Setup.myCustomerSetting__c.activeCallBackUrl__c}
? Is there any other way to do this dynamically?