previous version of a Document in SAIL

hi all,
do you know how in SAIL can I show, for a given DocumentID, all its previous versions?
many thanks

OriginalPostID-261973

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    Hi Francesco,

    The work around for your approach is that first you need to save each document individualy i mean don't let appian to create document versions.
    Save all the related document ids in database and keep a reference column so that you can pull all the related document ids
    Then you need to construct a URL to download the document with obtained doc id's. The URL for downloading documents can be seen below

    forum.appian.com/.../106162

    You can get "forum.appian.com/.../" using rule!APN_getSiteUrl() or you can keep it in a constant and this should be changed from environment to environment witn new URL

    And keep the "doc/"" in a appian constant

    Now construct the URL in a expression rule say getDocumentVersions() which takes document id as input. Code for the rule will be in below format
    rule!APN_getSiteUrl() & doc/ & documentId

    Now you can use apply() to iterate newly created getDocumentVersions() rule for document ids obtained from DB

    Hope this will help you.
Reply
  • 0
    Certified Lead Developer
    Hi Francesco,

    The work around for your approach is that first you need to save each document individualy i mean don't let appian to create document versions.
    Save all the related document ids in database and keep a reference column so that you can pull all the related document ids
    Then you need to construct a URL to download the document with obtained doc id's. The URL for downloading documents can be seen below

    forum.appian.com/.../106162

    You can get "forum.appian.com/.../" using rule!APN_getSiteUrl() or you can keep it in a constant and this should be changed from environment to environment witn new URL

    And keep the "doc/"" in a appian constant

    Now construct the URL in a expression rule say getDocumentVersions() which takes document id as input. Code for the rule will be in below format
    rule!APN_getSiteUrl() & doc/ & documentId

    Now you can use apply() to iterate newly created getDocumentVersions() rule for document ids obtained from DB

    Hope this will help you.
Children
No Data