In this article, I will show how to set an Initiation Form for a Designer Workflow.
What an Initiation Form isAn Initiation Form is required to capture user input before starting the workflow.For SharePoint Designer Workflows, we can use the Initiation Form Parameters screen to automatically create Initiation Forms in InfoPath.ScenarioWe are creating an Expense Approval Workflow. The flow is simple:
Please note that here we are creating a Max-Limit parameter that will be captured on each workflow start. This makes the workflow reusable for various lists and scenarios.Step 1: Create a new list named "Expense" with the following columns.Step 2: Open SharePoint Designer and create a new List Workflow selecting the preceding Expense list.Step 3: Click the "Initiation Form Parameters" Button.You will get the following dialog.We will create the parameter named "Max-Limit". Click the "Add" button and create the parameter of type Number.Click the "Next" button and you can set the Default value too.Click the "Finish" button and then the "Ok" button to close the dialog. You are ready with the parameter.Step 4: Open the Designer of Workflow and create 2 if branches as in the following.I have used the following condition:and the following action:You can choose the "Max-Limit" parameter from the "Lookup" dialog.Step 5: Save the changes and publish the workflow.Now you can see that a new InfoPath form is created for us.Step 6: We can test the workflow now. Open your list and create a new Item.After creating the item, use the context menu and open the "Workflows" item.In the page that appears you can see the Expense Approval workflow.Click to run the workflow and you will get the following "Initiation Form".Enter the value and click the "Start" button to execute the workflow.You can see the item being updated using the Initialization Parameter.Referenceshttp://bit.ly/1cOtHZiSummaryIn this article we have explored how to use an Initiation Parameter.
SharePoint Framework (SPFx) A Developers Guide