• Luka Nićiforović
  • NEWBIE
  • 10 Points
  • Member since 2020

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

I'm trying to get related Files and Notes of objects in Salesforce, this is the UI representation of what I want to get:
User-added image

So far I've tried these queries:
SELECT Id FROM Attachment WHERE ParentId='{objectId}'
SELECT Id FROM Note WHERE ParentId='{objectId}'
But the results are empty arrays..

Does anyone know a way to get this data, at least the count of related files and notes?