I need help to make a soql to get the images from ContentVersion based on caseId
We have 3 objects: ContentDocument ContentVersion ContentDocumentlink
ContentDocument is parent of ContentVersion and ContentDocumentLink
ContentVersion has versiondata(that is binary data) ContentDocumentLink having case id(Fieldname is LinkedEntityId)
I need to create a SOQL that provides version data of ContentVersion based on linkedentityID ( case- ID) when I use this query
select versiondata from contentversion where contentdocumentid in(select contentdocumentid from contentdocumentlink where linkedentityid in(select id from case))
Than it is giving the error like Entity 'contentdocumentlink' is not supported for semi join inner selects
It is giving error like semi join is not supported.