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
11 replies
Subscribers
6 subscribers
Views
3980 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
Hello, I want to implement functionality that will save documents to
issamd
over 9 years ago
Hello,
I want to implement functionality that will save documents to the knowledge center and if a document has the same name as another document in the knowledge then I want a number appended to the end of the document name.
Does Appian have built in functionality for this?
OriginalPostID-183198
OriginalPostID-183198
Discussion posts and replies are publicly visible
0
issamd
over 9 years ago
Hello, I apologize for the late response.
I created a rule that did the following:
Since we store document names in the DB, I pulled back all relevant document names.
I append the list of documents existing from the DB to a list of documents I'm trying to upload.
I loop through each document, updating that list as I go through. It checks if the document I am uploading matches the name of a document in the DB. If it does, then I update the name of the document to DocName_1. It then checks if there's a document with the name DocName_1 in the DB, until it is the maximum number.
It then continues onto document two.
It's quite complex, but it just requires some filtering and using a rule that actually calls itself until the name is what you need.
Let me know if you need any more help.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
<