Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Attach reusable Workflow to a list using Javascript

$
0
0

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!




Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>