Expand my Community achievements bar.

SOLVED

A Fusion Scenario To Gather All Files Found In Specific Folders

Avatar

Level 4

Hello,

 

I am trying to run a scenario that will allow me to gather of all of files in a collection of projects and to copy all of those files to a new project.

The files I need are all found across multiple folders, all with a standard name, (across multiple projects) so a search by folder name is possible. What I am stumped on is how to build the custom API call to account for the folder name when searching for documents.

Here is what I tried with error:

Eric_D_Miller_0-1740666244440.png

Any help would be much appreciated.

 

Thank you,

Eric

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

I would invert your logic and find all of your folders, instead of the documents, and include the list of documents on the returned folders.

 

View solution in original post

6 Replies

Avatar

Correct answer by
Community Advisor

I would invert your logic and find all of your folders, instead of the documents, and include the list of documents on the returned folders.

 

Avatar

Level 4

Hi Chris,

 

How would you include that list? I get an error when I try to reference a collection in the key.

Avatar

Community Advisor

That's wierd, when you search for folders, you should be able to include "documents" in the fields key and get the docs in those folders. What does your query string look like?

Avatar

Level 8

@Eric_D_Miller 
I think Chris is suggesting this

  • search for folders on the project 
  • where name is released files
  • that contain documents

This will return a set of bundles of "Released Files" folders that all will have a "documents" collection

SveniX_1-1740750031513.png

 

 

Avatar

Community Advisor

 

Thanks @Sven-iX,

 

Your example ties neatly into another project I'm working on, so I've noted it in The Vault.

 

Regards,

Doug

Avatar

Community Advisor

Exactly this Sven, yeah. Thanks for clarifying.