Q. I set up an OAuth 2.0 type universal HTTP connection to Salesforce, and it allows for refreshing the connection token after the original one has expired. I created the “refresh token body” as documented, and the connection is working correctly.
How can I be sure that the connection will continue to work once this token has expired? I can’t preview the actual refresh token request (with resolved handlebars) that will be sent. Is there a way to verify the connection, other than to leave it running for a while to see if it breaks?
A. One way to test whether the refresh request works is to enter any invalid token in the connection and then click Test connection.
First, make sure you configure How to test this connection with the ping call. Whenever the initial attempt fails due to an invalid token, the refresh mechanism will run. Either it will succeed with an online connection, or you’ll be shown a specific error message and asked to try again.
Please sign in to leave a comment.