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
11 subscribers
Views
2715 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
previous version of a Document in SAIL
francescop389
over 7 years ago
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
Ram
Certified Lead Developer
over 7 years ago
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.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Ram
Certified Lead Developer
over 7 years ago
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.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data