You need to sign in to do that
Don't have an account?
Christopher Bahr 4
Is there a way to write an SOQL query that grabs all the files attached to opportunities?
Basically I am trying to create a report on our attachments with the SOQL 2 Report (https://appexchange.salesforce.com/listingDetail?listingId=a0N3A00000FMnZuUAL) app from the appexchange. Is it possible to write a single query that would grab the attachment information from the contentversion table, link to the file, and opportunity information?
I've tried to write one but I am getting tripped up with the polymorphic relationship and fields between the opportunity table and contentdocumentlink table.
I've tried to write one but I am getting tripped up with the polymorphic relationship and fields between the opportunity table and contentdocumentlink table.
All Answers
Kindly try this :-
Kindly refer the similar ask :-
https://salesforce.stackexchange.com/questions/124640/how-to-query-all-files-attached-to-the-opportunity
Kindly mark it as the best answer if it works for you.
Thanks & Regards,
Priya Ranjan
Best regards,
Chris