cancel
Showing results for 
Search instead for 
Did you mean: 

Automation : how to modify the position of a document in ordered folder ?

SylvainD_
Champ on-the-rise
Champ on-the-rise

Hi,

I would like to modify the position (to the top) of a document in an ordered folderish document via an automation chain...

Any idea ?

Thanks

2 REPLIES 2

Bertrand_Chauvi
Confirmed Champ
Confirmed Champ

Hi,

Studio does not provide an operation to do so by default, but you may contribute your own. This will require some coding, but it can be achieved quite simply.

The code called by the buttons in the user interface is the following :

If you look at it, you may see that there is a moveToTop() method, in which we use the documentManager (also called CoreSession). The CoreSession has a native function to reorder a document. Then we launch some specific events to update the other documents.

The good thing is that the CoreSession can be called in many ways :

Studio also provides an operation to launch some specific Seam events : User Interface > Raise Seam Events.

This means that your operation only needs to move the document, then you can use the native operation in your chain to launch the events afterwards. So it can remain quite small and easy to maintain.

If you wish to build this operation, here are a few links to get you started :

Hope that helps !

Thanks a lot to you for this explaination. I was afraid of this type of solution but it's just a step to pass... (and the beginning of a series of questions 😉

Getting started

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.