How to move folders one level up along with its contents.
Question
Question
Answer
Combination of Miruna and Kenneth works:
- Search Repository
- For Each entry
- Find Entry
- Pattern Matching
- Track Tokens <-- this was extremely useful especially with my pattern matching
- Route to Folder
Replies
can you be a little more specific?
If you are trying to move folders 1 folder up, run a search that returns all the folders (and only folders) you wish to move. Then use a "For Each Entry" and use a find entry to find the parent folder, using the current entries path. Then use a move activity to move the current entry to the path of the parent folder now that you have that token from the find entry activity. The moving of the folder will in turn bring all it's contents.
It's not very clear what you're trying to do, but the Route to Folder activity might be what you're looking for. It has options to move the parent folder of a given entry. You can use Pattern Matching to strip out the last level from the folder path.
Hi Ayesha,
If your question has been answered, please let us know by clicking the "Mark this reply as the answer" button on the appropriate response.
If you still need assistance with this matter, just update this thread. Thanks!