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
7 replies
Subscribers
5 subscribers
Views
7719 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Hi, I wanted to retrieve all the documents within a specific folder.
phanibabuk
over 9 years ago
Hi,
I wanted to retrieve all the documents within a specific folder.
I see the following functions available but they don't help me.
findDocumentsByName
getDocumentsFromFolder (this returns all docs from the root folder.)
getSubfoldersFromFolder
I have a root/parent folder "A" which has "n" number of sub-folders.
Each of these sub-folders has "m" number of documents.
I wanted to pass the folder name (in this case just the sub-folder name) and get all the documents within that folder.
Is there a plug-in available that satisfies my requirement.
Any inputs please!!!!!
OriginalPostID-171765
OriginalPostID-171765
Discussion posts and replies are publicly visible
Top Replies
vasanthah
over 9 years ago
+1
I think you can get all the documents even from sub folders if you use the getDocumentsFromFolder when you pass the recursive value as "true()", check this out in expression rule.
0
vasanthah
over 9 years ago
I think you can get all the documents even from sub folders if you use the getDocumentsFromFolder when you pass the recursive value as "true()", check this out in expression rule.
Cancel
Vote Up
+1
Vote Down
Sign in to reply
Verify Answer
Cancel
0
phanibabuk
over 9 years ago
Yes. This returns from all sub-folders but I want from a specific one.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
phanibabuk
over 9 years ago
I can achieve this by using the following:
=getdocumentsfromfolder(findfoldersbyname(false,riID,cons!consFolder),false)
Here, ri!ID is the folder name that I want to pass.
But look like "findfoldersbyname" is deprecated.
Any work-arounds this.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ammireddys
A Score Level 1
over 9 years ago
@Phani : getDocumentsFromFolder() would satisfy your requirement.
As you said if you want retrieve the documents from specific folder just pass folderId and recursiveSearch as false(). this gives only the documents from specific folder.
If you pass recursiveSearch as True(), it gives all the docs within sub-folders also.
Hope it helps!!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vasanthah
over 9 years ago
Just pass required folder ID where you need to fetch docs and "false()" value for recursive... It works
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
ammireddys
A Score Level 1
over 9 years ago
Hi Phani,
Can you try this once, it worked for me.
getdocumentsfromfolder(findfoldersbyname(false(),ri!folderName,ri!KC),false())
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
phanibabuk
over 9 years ago
Hi,
I already tried this and it worked.
However, it looks like findfoldersbyname is deprecated.
My root folder has thousands of sub-folders. In this case, how can I retrieve the folder id?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel