Hi!
Is there any way to check is exists or not a document in appian,some rule that checks it and return true or false because if i use length or count,it returns me "1" but the document doesnt exist, it´s too weird.
Any help?
Regards,Rebeca
Discussion posts and replies are publicly visible
Hello Rebeca,
Here is a code below you can use in case of document not found.
try( document(todocument(0),"id") ,"Document Not Found")
Thank You
Bibhuti
Unfortunately, as much as we might see the value in it, Appian still has yet to document the try() function, so it's strongly recommended not to try() anything funny. It could be deprecated, removed, or have it's behavior altered without warning and break any code using it.