Skip to main content

Hi All,

I am trying to fetch the attachments of a case in Partner Community and Customer Community

And using following soql :

Select Id,(Select Id,ParentId from CombinedAttachments) from Case where Id =:recordId

 

Although this query returns expected data for other profiles but when same controller executes in community context the query does not return the subquery results correctly.

 

Any pointers would be really helpful.

PS: Have already tried the " Let customer users access notes and attachments " checkbox under "Digital Experience">"Settings"

 

Thanks

 

#Experience Cloud

4 Antworten
  1. 6. Okt. 2021, 16:03

    Hi Paul, 

     

    Yes the customer access is enabled and it worked for those files whose access is enabled.

    However I do not want to perform this manually for each file.

    Rather the files under any record should be accessible to the "Community User" only if that record is accessible by that "Community User".

     

    Thanks