Document Chat Component

Certified Lead Developer

I have used this code in my interface with different approaches and get this error everytime .

  • I have used this code inside form layout and other layouts as well .
  • Use simple without any layout
  • In record summary view 
  • Try it in expression rule and use that rule in interface 

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

Parents
  • 0
    Certified Associate Developer

    Hi  , Yes, I have also faced the same issue when I tried to use this in the 24.4 environment:I got 'Expression evaluation error at function a!documentsChatField [line 2]: a!documentsChatField cannot be called from a user rule,'  error even though I have permission to view that file. So, I went through the documentation and discovered that this feature was released in version 25.1. Therefore, it may not be available in version 24.4. You can check the details here: 24.4/page-not-found. The latest version is 25.1 Documents_Chat

Reply
  • 0
    Certified Associate Developer

    Hi  , Yes, I have also faced the same issue when I tried to use this in the 24.4 environment:I got 'Expression evaluation error at function a!documentsChatField [line 2]: a!documentsChatField cannot be called from a user rule,'  error even though I have permission to view that file. So, I went through the documentation and discovered that this feature was released in version 25.1. Therefore, it may not be available in version 24.4. You can check the details here: 24.4/page-not-found. The latest version is 25.1 Documents_Chat

Children