cancel
Showing results for 
Search instead for 
Did you mean: 

Unzip in Share..Deceptively Simple

clperkins
Champ on-the-rise
Champ on-the-rise
Hi, I thought I'd share this solution I kind of stumbled across for unzipping a .zip package when uploading via the Share UI. Hopefully this helps someone searching the forums one day.

Just configure a new business rule in any space. Make sure you leave "apply to subfolders" unchecked because you're only wanting to expand the content into the directory you drop the .zip file in.

–Rule Definition–

When: Items are created or enter this folder
If all criteria are met: Mimetype in cm:content is ZIP
Perform Action: Import to [same space containing rule]

That's all. Of course a script would be better because you could link to the rule in other spaces but this gets the job done.
7 REPLIES 7

jpotts
World-Class Innovator
World-Class Innovator
Rules rule.

Thanks for sharing the tip!

Jeff

clperkins
Champ on-the-rise
Champ on-the-rise
You kidding Jeff?  Smiley Very Happy  Thank YOU man! For all of the contributions you've made to the community.

ebogaard
Champ on-the-rise
Champ on-the-rise
This would be a really nice option, if there was an option 'import to [folder containing zip]', where the folder is dynamically chosen on the basis of where the .zip is added.
That way you can use 'apply to subfolders' and always be able to import complete folder structures. That way, the 'templated node' doesn't need to support folders (which it currently doesn't), you only need to make a nice .zip for every template you need.

jpotts
World-Class Innovator
World-Class Innovator
You could do this with a little JavaScript and then the "Execute Script" action for your rule instead of using the out-of-the-box action.

Jeff

ebogaard
Champ on-the-rise
Champ on-the-rise
Thanks for your suggestion.
That actually was my 2nd option, as I than have to search for a script that can do this 😉

clperkins
Champ on-the-rise
Champ on-the-rise
Do you mean adding an action to the .zip in the doclib?

ebogaard
Champ on-the-rise
Champ on-the-rise
Almost, but something even simpler: just a Javascript that you can call on with a rule as a zip-file enters a space.
It then should import the zip in the folder (space) it's placed in.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.