How can I get a coreSession in a groovy script

iry_
Champ on-the-rise
Champ on-the-rise

Hello

I want to create documents in a script like this: coreSession.createDocumentModel("/Documents",id,"DocumentWorkspace");

How can I instantiate the coreSession?

1 ACCEPTED ANSWER

Thierry_Martins
Star Collaborator
Star Collaborator

hello !

You just have to use the variable Session which is available in the context of a groovy script Session.createDocumentModel("/Documents",id,"DocumentWorkspace");

TM

View answer in original post

1 REPLY 1

Thierry_Martins
Star Collaborator
Star Collaborator

hello !

You just have to use the variable Session which is available in the context of a groovy script Session.createDocumentModel("/Documents",id,"DocumentWorkspace");

TM