Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
bossgolfer
1 year agoHelpful | Level 5
Using API in Salesforce with Named and External Credentials and OAuth2 upload OK but call to file sh
I have setup OAuth2 in Salesforce along with Named Credentials and External Credentials. I am calling the File Upload API in the code..that works fine with all the above. I setup a second Named Cred...
bossgolfer
1 year agoHelpful | Level 5
To answer your additional questions:
1. The access token generated in the app is not permanent, it does expire.
2. Could you expand on what blocks you may be encountering as far as wanting to "chunk load larger files"?
>>> I actually got that working OK.
3. Could you also further explain what you mean by "getting a second token on a second HTTP callout is a problem when calling the different API"?
Its just not clear to me what was causing the missing scope on the sharing call after the initial call to file upload.
So do you recommend going back the the Oauth access vs the token.
DB-Des
Dropbox Community Moderator
1 year agobossgolfer, It is recommended to get an access token via an OAuth flow, yes.
Keep in mind that access tokens, whether obtained from the app within the App Console or via OAuth flow, will eventually expire. The expiration time can be confirmed in the property expires_in, which is found in the response object returned from the /oauth2/token endpoint.
I hope this information provides more clarity!
- bossgolfer1 year agoHelpful | Level 5
Thanks. I went the route of Auth Provider plus Named and External Credentials in Salesforce and all is working well.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!