• Nitin Muthyala
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

Im tring to replicate some of the Content Library features in my custom app so Im usgint the REST API to achive this. I successfully managed to add  Library features features like 
View Files in Folder (Inside a library)
Download a File 
Rename File
But when I try to Upload a file it says

[{"errorCode":"INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY","message":"Cannot move a file into a folder you do not have access to."}]
Im sending a post request to https://ap1.salesforce.com/services/data/v40.0/connect/folders/07H900000008W0MEAU/items

However if I use the same API to upload to a sync folder I dont have any issues, it works.

Also if i upload a file from the browser it works, so defiantly I have the permission, I have double checked in the permission settings as well I have all permissions to upload a file. 


Doesn anyone know whats the possible reason ?


 

Im tring to replicate some of the Content Library features in my custom app so Im usgint the REST API to achive this. I successfully managed to add  Library features features like 
View Files in Folder (Inside a library)
Download a File 
Rename File
But when I try to Upload a file it says

[{"errorCode":"INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY","message":"Cannot move a file into a folder you do not have access to."}]
Im sending a post request to https://ap1.salesforce.com/services/data/v40.0/connect/folders/07H900000008W0MEAU/items

However if I use the same API to upload to a sync folder I dont have any issues, it works.

Also if i upload a file from the browser it works, so defiantly I have the permission, I have double checked in the permission settings as well I have all permissions to upload a file. 


Doesn anyone know whats the possible reason ?