Hi Everyone,
Well, my scenario is a Sharepoint in the cloud (O365) and I have programmed a script (Using SP.js) for creating all the libraries and list for a site.
docLibCreation = new SP.ListCreationInformation();
docLibCreation.set_title(parametros.ListTitle); //list title
docLibCreation.set_templateType(SP.ListTemplateType.documentLibrary); //document library type
The problem is I want to "attach" a workflow to the list or library when it is created because in my script I will create a large number of it and I wouldn't like to set manually the workflow for each of the lists. I would appreciate that someone could give me a hint how to do it.
Thank you!