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
Publish ZFlow event
(function endWaiting (){
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 = new SP.WorkflowServices.WorkflowServicesManager(clientContext, appCtx.get_web());
var workflowInstanceService = workflowServiceManager.getWorkflowInstanceService();
var workflowInstanceId = new SP.Guid(WorkflowID);
var workflowInstance = workflowInstanceService.getInstance(workflowInstanceId);
workflowInstanceService.publishCustomEvent(workflowInstance, EventName, Payload);
clientContext.executeQueryAsync();
})(),
where:
WorkflowID – id of the workflow that is waiting for event,
EventName – name of the event to continue workflow,
Payload – workflow paramters.