Skip to main content

There is a use case which I try to implement where the sandboxpostcopy interface is supposed to login to production and get some information, then insert the same back to sandbox. 

 

As of now I have tried below modes of authentication : 

1. External Cred + Named Cred + Username/Pwd - Not preferred 

2. External Cred + Named Cred + Oauth 2.0 - Browser flow --- As I try to authenticate using this it requires an auth provider and Auth provider has callback URL based on sandbox. Thus the authentication fails. 

3. External cred + Named Cred + Oauth 2.0 - Client Cred - Authentication works perfectly, but upon refresh client credentials are cleared and this prevents successful execution of sandboxpostcopy interface. 

 

Any one tried something similar? Authenticating to salesforce production, retrieving the data and act on it? 

 

Thanks 

 

#Salesforce Developer  #Integration

0/9000