Integration Overview
-
We have built a custom Salesforce integration with Zoom for Meetings and Phone Calls.
-
The app is created as a General App (Account Level) in Zoom Marketplace.
-
From Salesforce, we can successfully create meetings/phone calls and retrieve recordings and transcripts.
Authentication Setup
-
Using Named Credentials + Auth Provider in Salesforce.
-
Access tokens refresh dynamically during normal usage.
Issue Description
-
After not using the integration for a long period, we received the following error:
{"code":124,"message":"Access token is expired."}
-
The issue was temporarily resolved by editing and re-saving the Named Credential in Salesforce.
Question
-
How can we prevent this error from happening again in Salesforce?
-
Is there a best practice to handle long inactivity periods or to programmatically force a token refresh before expiration?