DocTrix Forms for Office 365
- Create your first form
- Build expression with the reference to the other field(s) value
- Get value out of the fields and controls
- Check if the value of a field is empty
- Make user redirect to the URL
- Fill in current user in User/Group fields by default
- Get user name or id
- Compare user values
- Check current user for SharePoint Online user group membership
- Compare dates
- Limit the number of symbols in text field
- Get value of lookup field
- Set default value for the field
Start ZFlow process (workflow)
(function startWorkflow (){
var serviceUrl = document.getElementById('react-app').getAttribute('appWebUrl');
var WebUrl = document.getElementById('react-app').getAttribute('hostWebUrl');
var clientContext = new SP.ClientContext(serviceUrl);
clientContext.set_webRequestExecutorFactory(new SP.ProxyWebRequestExecutorFactory(serviceUrl));
var appCtx = new SP.AppContextSite(clientContext, WebUrl);
var workflowServiceManager = SP.WorkflowServices.WorkflowServicesManager.newObject(clientContext, appCtx.get_web());
var subscription = workflowServiceManager.getWorkflowSubscriptionService().getSubscription(SubscriptionID);
var workflowInstanceService = workflowServiceManager.getWorkflowInstanceService();
workflowInstanceService.startWorkflowOnListItem(subscription, ItemID, InputParameters);
clientContext.executeQueryAsync();
})(),
where:
SubscriptionID – subscription id,
ItemID – id of the item to run the workflow for.
InputParameters – workflow parameters.