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
7344 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
sikhivahans
over 11 years ago
hi rayudua, A way of doing is to check physical existence of document using fn!getdocumentlatestversionphysicalurl(pv!docid). (even you can use fn!getdocumentphysicalurl or fn!getdocumentlatestversionphysicalurls) If this returns null, your document doesn't exist physically, which means it is deleted. Hope this solves your problem.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
sikhivahans
over 11 years ago
hi rayudua, A way of doing is to check physical existence of document using fn!getdocumentlatestversionphysicalurl(pv!docid). (even you can use fn!getdocumentphysicalurl or fn!getdocumentlatestversionphysicalurls) If this returns null, your document doesn't exist physically, which means it is deleted. Hope this solves your problem.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data