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
Replies
6 replies
Subscribers
4 subscribers
Views
2902 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Purge documents from KC
naveena113
over 7 years ago
Hi
Am looking for any leads best practices to delete unwanted documents from KC post a business transactions
Thank you
OriginalPostID-266887
Discussion posts and replies are publicly visible
0
Poorna Guduri
A Score Level 1
over 7 years ago
Hi naveena, you may opt for one of the following approaches:
1. Through Direct Smart Service - There is a smart service which provides the ability to delete the documents from a folder. I am assuming that it works for KC as well. But the smart service has been tested on 6.x version of Appian. It was last updated in 2012. Please find the link below:
forum.appian.com/.../summary
2. You may opt for one of the multiple ways to fetch the documents (in fact document ids) from KC - (getdocumentsfromfolder(), folder(folderId,"documentChildren") - comes with 16.x version of Appian,etc.) and build a process model with the Delete Document Smart Service configured MNI on it in such a way that it will execute based on the number of documents.
Hope this helps!!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Naresh
Certified Associate Developer
over 7 years ago
@naveena113 What do you mean by unwanted documents? Does KC contain both required and not required documents? If your requirement is to delete all the documents from KC then it should be a straight process using a smart service mentioned by Poorna above.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
naveena113
over 7 years ago
Basically my requirement is to cleanup the breadcrumbs after doing a merge of a bunch different files to a PDF, after the merge is completed I get a PDF but I need to do some cleanup of the unwanted files & this has to be done as part of the plugin, do we have any API or apian classes which expose this functionality ?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Poorna Guduri
A Score Level 1
over 7 years ago
Hi naveena, as per your requirement the process should be able to know the unwanted documents in order to delete them and then you can make use of the existing smart service - Delete Document - with MNI on it. If you want to go with the API provided by Appian, please find the below URL where the DocumentService interface (which is deprecated) is pointing to the ContentService (which is the parent interface for all types of Appian objects):
docs.appian.com/.../DocumentService.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
naveena113
over 7 years ago
Thanks @Poornah this is what i was looking for. Thank you @nareshs930
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Poorna Guduri
A Score Level 1
over 7 years ago
Glad to help :)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel