1

I'm trying to find a file via /services/data/v41.0/parameterizedSearch endpoint with body like this {"q":"sps","sobjects":[{"name":"File"}]} - it says that INVALID_TYPE, when I use name "Attachment" it finds nothing. Is it naming issue or I should use another endpoint?

  • 1
    Have you tried ContentDocument / ContentDocumentLink / ContentVersion ? – caleb.breckon Apr 9 '18 at 16:33
1

There is no object named as FILE, Files are stored as Attachment or ContentDocument.

Make sure you provide full name of file with extension.

eg:

{"q":"DL.jpg","sobjects":[{"name":"ContentDocument"}]}
  • thx, it works!!! – AndrewG Apr 9 '18 at 19:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.