You need to sign in to do that
Don't have an account?

getting id of feedItem files
Hi folks,
Can anyone tell me how to get the id of the feedItem files?
Like I want to know the id(ContentDocument.LatestPublishedVersionId) of the files that are attached to the feeditem and feedcomment.
Please someone give me the soql for above usecase.
Thanks in advance
Karthick
Can anyone tell me how to get the id of the feedItem files?
Like I want to know the id(ContentDocument.LatestPublishedVersionId) of the files that are attached to the feeditem and feedcomment.
Please someone give me the soql for above usecase.
Thanks in advance
Karthick
If you know the Id of the FeedItem you can get the Id of the related file using this SOQL query:
SELECT RelatedRecordId FROM FeedItem WHERE Id = '0D5i000001wzbqUCAQ'
Let me know if that works or if I misunderstood.
I wanna (ContentDocument.LatestPublishedVersionId) of the file that are attached to feedItem and feedComment
Thanks in advance
Karthick