Hi,
Currently have a rule containing the following where the rule input is a list of documents and constant has text "DOCX"
return true if all document extensions in a list have the extension "DOCX" otherwise return false.
and( a!forEach( items: ri!receivedDocumentsList, expression: document( fv!item, "extension" ) = cons!DOCUMENT_EXTENSION_DOCX ))
Which works fine but is there a more elegant way to do this?
Regards
Discussion posts and replies are publicly visible
a!localVariables( local!fileExtensions: {"docx", "DOCX", "PDF"}, all(exact(_, "DOCX"), upper(local!fileExtensions)) )
Thank you guys for the replies that have helped this move forwards.