In my interface, I user function document.
if( document(tofolder(local!documentId), "size") > 0, true, false )
Discussion posts and replies are publicly visible
Hi,
Looks like the provided document id have null value (local!documentId). You can add null check condition to solve this issue. See below sample code
if( and( a!isNotNullOrEmpty(local!documentId), document(tofolder(local!documentId), "size") > 0 ), true, false )
I tried, but It also error like that
show us the error. What input you are giving to the rule input. check whether the document is available for the id you entered or not?