Hello, I want to implement functionality that will save documents to

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

  • 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.