Take Your Search Game to the Next Level with Dropbox Dash 🚀✨ Curious how it works? Ask us here!
Forum Discussion
Bob D.20
9 years agoNew member | Level 1
Obtaining shared link from VBA (API v2) - 409 Conflict
I have the following code which I modified slightly from this link. The return is a 409 Conflict error. I believe the issue lies in how I'm structuring the path string, but I admit to this being well...
Bob D.20
9 years agoNew member | Level 1
Thank you! The clue was in "make sure you're connected to the account you intend." I was, but my app was set for it's own folder, not all of my DB account!
Rectified that, and completed as successful share link retrieval!
For anyone that needs it, here's the final script:
Dim req As MSXML2.ServerXMLHTTP60
Set req = New MSXML2.ServerXMLHTTP60
Dim arg As String
Dim filename As String
Dim path As String
Dim Result As String
path = "Desktop Work File"
filename = "33603DOX.pdf"
arg = "{"path": "/" & path & "/" & filename & "}"
req.Open "POST", "https://api.dropboxapi.com/2/sharing/create_shared_link_with_settings", False
req.setRequestHeader "Authorization", "Bearer <redacted>"
req.setRequestHeader "Content-Type", "application/json"
req.Send arg
If req.Status = 200 Then
Debug.Print req.responseText
Else
MsgBox req.Status & ": " & req.StatusText
Debug.Print req.responseText
End If
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,000 PostsLatest Activity: 19 hours ago
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 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!