Appian Community and Appian Academy are being upgraded. From July 24–August 3, the Appian Community will be in read-only mode. During this time, the site will be read-only and user registration will be disabled. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

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

Parents
  • 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.
Reply
  • 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.
Children
No Data