show / hide menu

Trigger Workflow

TriggerWorkflow

            This function will be used to trigger the SharePoint workflow associated with the conditions and actions of the items in SharePoint lists and libraries from AppForms. 

Syntax: 

TriggerWorkflow(SiteURL, WorkflowName, ListName, Id)

SiteURL is the URL of the site.
Workflow Name is the workflow URL associated with the SharePoint list/library.
ListName is the name of the List.
Under the argument ‘Id’ you can specify the “ID” of the particular item.

Example:


TriggerWorkflow(“http://sys97/QATest/emailworkflow/emailworkflow”,”emailworkflow”,”workflow”,txtid.Value)