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
7 subscribers
Views
6051 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Hi Team , I want to get the document IDs of all the documents in the
jasleenk
over 11 years ago
Hi Team ,
I want to get the document IDs of all the documents in the particular folder.
Please suggest how i can do that in Appian...
OriginalPostID-82791
OriginalPostID-82791
Discussion posts and replies are publicly visible
Top Replies
Michael Tan
over 11 years ago
+1
Appian Employee
Jasleen, Siva's approach will still work, as document objects are represented by their Id number internally. This means you can convert documents to their id's by using the tointeger function. If their…
0
Siva
Certified Lead Developer
over 11 years ago
Hi Jasleen,
There is a custom expression getdocumentsinfolder() which takes folderID and returns list of Documents. Link to that custom component is
forum.appian.com/.../summary
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
jasleenk
over 11 years ago
Hi sivashankarik ,
This will give me the list of the documents only , i want the documents IDs of each document in folder (in form of any collection list or so ).
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Michael Tan
Appian Employee
over 11 years ago
Jasleen,
Siva's approach will still work, as document objects are represented by their Id number internally. This means you can convert documents to their id's by using the tointeger function. If their is more to your full use case, then please let us know and we can try to assist further.
Cancel
Vote Up
+1
Vote Down
Sign in to reply
Verify Answer
Cancel
0
jasleenk
over 11 years ago
Hi Michael / sivashankarik , I am getting the document list from getdocumentFromFolder.
Now do i need to iterate it and get document object of each and then do tointeger ?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Siva
Certified Lead Developer
over 11 years ago
Yes, you can use looping functions. Here is the link
forum.appian.com/.../Looping_Functions
Just a note - Looping functions are available from Appian 6.7 version
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Michael Tan
Appian Employee
over 11 years ago
Jasleen, you actually don't need to loop through the list. If you pass in a document variable which has multiple values in to the tointeger function, then it will convert all values in the array to an integer. If pv!docList has 4 documents, then passing it in to the tointeger function and saving to a number variable allowing multiple values will yield the 4 document id's.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel