Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!
The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.
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 )
In document function, you have to provide documentId not the folder id.
if( document(todocument(ri!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?
It also error.
show me the error along with rule input.
what is the value of local!documentId?
It has value.
Could you please show us the value of the local variable and in designer also try to see the value for the particular id.