Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
+1
person also asked this
people also asked this
Replies
9 replies
Subscribers
8 subscribers
Views
7342 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
#Document Exist? How do i check if a document exist? document(pv!docid, &qu
rayudua
over 11 years ago
#Document Exist? How do i check if a document exist?
document(pv!docid, "name") Fails if the documetn does not exist. pv!docid has a value 1000. but the document might have been manually deleted etc. It fails and throws an error to user. I would like to check if document exist before using that function
if( docExist(pv!docid), document(pv!docid,"name"), "no document");...
OriginalPostID-80995
OriginalPostID-80995
Discussion posts and replies are publicly visible
Parents
0
rayudua
over 11 years ago
Thanks. Without the plugin. probably not the best. Will try the plugin as well.
if(search("src",documentlist(todocument(1234)))>0,"EXIST", "DOES NOT EXIST")
Just was playing with other out of box document functions that does not throw errors.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
rayudua
over 11 years ago
Thanks. Without the plugin. probably not the best. Will try the plugin as well.
if(search("src",documentlist(todocument(1234)))>0,"EXIST", "DOES NOT EXIST")
Just was playing with other out of box document functions that does not throw errors.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data