In this article, I will show how to set an Association Form for a Designer Workflow.
What is Association Form?
Association Form is required to capture user input before associating the workflow with a list or library.
Initiation Form is another type of form which is used to capture information before running the workflow instance on an item.
We can use Association Forms on Reusable Workflows which have different parameters for execution. For example, in an Expense approval scenario we can set an Administrator Email to be captured on list-association.
We are creating an Admin Notifier Workflow. The flow is simple:
- Notify Administrator on each Expense Approval
- Workflow can be associated with different department lists having different Email
You can combine this with the previous workflow here.
Create a new list named Expense with following columns.
Open SharePoint Designer & Create a new Reusable Workflow.
Click on the toolbar.
You will get the following dialog box.
Click on the Add button.
Choose the Association option, enter the Field name & click the Next button.
In the appearing page you can enter a default value for the email & click Finish button.
Save & Publish the workflow.
You can go to a List > List Settings > Workflow Settings > Add a workflow.
You can see our new workflow there as it is a Reusable Workflow.
Enter the workflow name for the association, check the Start option & click Next button.
You will see the following Association Form.
Enter the Email respective to the List & Click the Save button. This demonstrates the simple usage of Association Form.
In advanced scenarios, we can use the Association Parameter in Email activity.
In this article we have explored how to use Association Forms.