I have used this code in my interface with different approaches and get this error everytime .
Expression evaluation error [evaluation ID = 15a08:f572c] at function a!documentsChatField [line 70]: a!documentsChatField cannot be called from user rule (APNX-1-4198-000)
{ a!documentsChatField( label: "Documents Chat", labelPosition: "COLLAPSED", documents: ri!record[recordType!SMRT Document Collection.relationships.smrtDocument.fields.documentId], height: "AUTO" ) }is there any other approach we can use for this component in our interface or if there is any other code reference that will be really helpful.
Discussion posts and replies are publicly visible
Hi Priyanka Diwan ,I've used the same code with all the usecases you've mentioned, they are perfectly working fine!!!It may be becoz you don't have atleast viewer permission to that particular document, can you confirm trying with a valid document?
Hi Varun,i do have permission for that document and record as well from where i'm retrieving the document ID.Still same issue