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
+2
person also asked this
people also asked this
Replies
6 replies
Subscribers
10 subscribers
Views
6984 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Check weather document exists or not
Rama Thummala
Certified Lead Developer
over 8 years ago
Hi,
I want know weather document is available or not by taking document id. If I pass an id to document() function it will give error if the document is not available.
Any suggestions?.
Thanks.
OriginalPostID-239244
Discussion posts and replies are publicly visible
0
sikhivahans
over 8 years ago
@ramanjaneyulut One of the options is to make use of the 'Check Object Existence' plugin at http://bit.ly/2coVGoM. Example: isObjectExists("Document",
) returns true if document exists, else false. It's one of the safe way to skip the error in case of inexistent objects.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 8 years ago
@ramanjaneyulut I think the post at
forum.appian.com/.../f-228342
should act as a nice reference for you.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Rama Thummala
Certified Lead Developer
over 8 years ago
Thanks @Sikhi, helpful
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Rama
over 8 years ago
It means your document is not available or else you may provide different doc id to function.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Rama Thummala
Certified Lead Developer
over 8 years ago
Yes Rama. Document is not available in knowledge center, but the id i am passing is there in db which was stored earlier to delete the document.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 8 years ago
@ramanjaneyulut No problem. In your case, I would suggest maintaining a sync by updating the DB table(that maintains information about document objects) as soon as the document object is deleted. If the data is proper, there isn't a need to resort to usage of the plugin in this case.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel