Skip to main content
added 2 characters in body
Source Link
Ratan Paul
  • 22.8k
  • 14
  • 55
  • 99

We have a custom object. In the notes and attachments related list of this custom object we have uploaded few pdf and ms-word files (each of them of size < 5 mb) we are not able to access the attachments by soql query inside apex class.

Further even in workbench a simple query 'SELECT Id, Name FROM Attachment''SELECT Id, Name FROM Attachment' returns 0 records.

We have a custom object. In the notes and attachments related list of this custom object we have uploaded few pdf and ms-word files (each of them of size < 5 mb) we are not able to access the attachments by soql query inside apex class.

Further even in workbench a simple query 'SELECT Id, Name FROM Attachment' returns 0 records.

We have a custom object. In the notes and attachments related list of this custom object we have uploaded few pdf and ms-word files (each of them of size < 5 mb) we are not able to access the attachments by soql query inside apex class.

Further even in workbench a simple query 'SELECT Id, Name FROM Attachment' returns 0 records.

Source Link
Nishant
  • 3
  • 1
  • 2

Querying attachments in apex class

We have a custom object. In the notes and attachments related list of this custom object we have uploaded few pdf and ms-word files (each of them of size < 5 mb) we are not able to access the attachments by soql query inside apex class.

Further even in workbench a simple query 'SELECT Id, Name FROM Attachment' returns 0 records.