You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
bossgolfer
3 months 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
Helpful | 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
3 months agoDropbox Engineer
bossgolfer, 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!
- bossgolfer3 months 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 & Feedback
Find help with the Dropbox API from other developers.
5,910 PostsLatest Activity: 3 days agoIf 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 or Facebook.
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!