Part 2: Build your first Nintex workflow in SharePoint 2016

Follow the steps in this page to build your first Nintex workflow in SharePoint 2016.

i Important

To build workflows in Nintex for SharePoint 2016, you must meet the following requirements:

• You must have Design permission in your SharePoint environment.

• You must be a member of the Workflow Designer’s group in SharePoint. For more information on how to configure allowed workflow designers, see SharePoint on-prem user permissions for Nintex.

For this tutorial, we will create a workflow that automates the leave request process in your organization using Nintex for SharePoint 2016. To achieve this goal, we have the following steps:

Step 1: Create a SharePoint list

Step 2: Open Nintex for SharePoint

Step 3: Send an acknowledgment email to the initiator

Step 4: Solicit the manager’s response to the leave request

Step 5: Notify the initiator if leave request is rejected

Step 6: Notify HR if leave request is approved

Step 7: Notify initiator if leave request is approved

Step 8: Save and publish the workflow

i Note

In this tutorial, the following roles are used consistently in context with SharePoint terminologies:

Initiator: The staff member who submitted the leave request.

Manager: The staff member’s direct manager who responds to the leave request.

Step 1: Create a SharePoint list

  1. Log in to your SharePoint environment.
  2. Navigate to the site where you want to create a list.
  3. From the toolbar, click (Settings) and then select Add an App.
  4. In the new page that appears, click Custom List. A new dialog appears.
  5. In the Name field, type “Leave Request” and then click Create.

    Upon successful submission, a page appears to display site contents including your new list.

  6. Click the name or icon of the list you recently created, which is "Leave Request".
  7. In the new page that appears, click edit.
  8. From the table, click + (Add column) and then select Choice.
    • If a column type does not appear in the list, click More Column Types, then select the desired column type and provide a Column name.
    • For some column types, you can simply select from the drop-down list and no additional window appears. You can rename the column right inside the heading of the table. The following image is an example:

  9. In the new window that appears, do the following:

    1. In Column name, type “Leave Type”.

    2. Select Choice.

    3. Type each choice on a separate line:

      • “Annual Leave”

      • “Sick Leave”

      • “Leave without pay”

      • “Maternity Leave”

  10. Leave other fields blank or with their default values.
  11. Click OK. The new column appears on your list.

  12. Repeat previous four steps to create the following columns:

    Column type

    Column name

    Date and time Start Date
    Date and time End Date
    Multiple lines of text Description of leave

    Click the following image to see how your columns should look like:

  13. After the columns are created, click Stop editing this list.

  14. Now, we can begin attaching a Nintex workflow to this list. Let’s move on the next steps.

Step 2: Open Nintex for SharePoint

  1. On the same page where you added columns for your list, click the List tab from the ribbon.
  2. Click the drop-down arrow in Workflow Settings and then select Create a Workflow in Nintex Workflow.

    The workflow designer canvas appears.

Step 3: Send an acknowledgment email to the initiator

In your workflow, use the Send notification action to configure sending an email to the employee who successfully submitted a leave request. This email serves as an acknowledgment receipt of the leave request.

  1. Locate the Send notification action from the toolbox. Do any of the following:
    • In the search field, type the name of the action.
    • Click the User interaction group. If an action is used several times, it also appears in the Commonly used group.
  2. Drag the Send notification action onto the drop zone.

  3. Double-click the Send notification action to open the configuration dialog.
  4. To add the recipient of the email:
    1. Click (Browse) next to the To field.
    2. Select the Lookup section.
    3. Select Initiator, and then click Add.
    4. Click OK.
  5. To provide an informative description for the subject:
    1. In the Subject field, type "Leave Request" then add space.
    2. Click  (Insert Reference) next to the Subject field.
    3. In the Item Properties tab, double clickLeave Type.
    4. In the Common tab, double click Initiator's Display Name.
    5. Click OK.
  6. Add a space between the two references Leave Type and Initiator's Display Name.
  7. In the email body text box, type the following message:

    Your leave request has been received and forwarded to Manager's Display Name for review.

    Leave details:

    Leave Type: Leave Type

    Start date: Start date

    End date: End date

    Note: Replace the red text with references. Use the Insert Reference option and locate the following references:
    Ÿ From the Common tab , select Manager’s display name.
    Ÿ From the Item Properties tab, select Leave type, Start date,and End date.

    Click the following image to see what your configuration should look like:

     

  8. From the ribbon, click General > Save.

Step 4: Solicit the manager’s response to the leave request

Use the Request Approval workflow action to configure an email to notify and solicit the manager’s action for the leave request.

  1. Locate the Request approval action from the toolbox:
    1. In the Search field, type the name of the action.
    2. Click the User interaction group. If an action is used several times, it also appears in the Commonly used group.
  2. Drag a Request Approval action onto the drop zone below the Send Notification action.
  3. Double-click the Request Approval action to open the configuration dialog.
  4. To add recipient of the leave request:
    1. Click (Browse) next the Approvers field.

    2. Select the Lookup section.

    3. Click Manager and then click Add.

    4. Click OK.

    Note: To enable the automatic selection of a user's manager, the information must be available in the user's Active Directory account. If you are accessing a Nintex trial on a Nintex-hosted site, the user's manager information will not be available, as the Standard Edition of Nintex Workflow does not support Active Directory.

  5. In the ribbon, click Task Notification.

  6. In the Edit settings for field, select Manager.

  7. A message appears warning that your configurations will override the values for Manager and changes to all approvers will no longer affect this user. Select OK to continue.

  8. In the Delivery type field, select Email.

  9. In the Subject field, type "Approval Required", if not already automatically generated.

  10. In the email body text box, type the following message:

    A leave request has been submitted.

    Leave type: Leave Type

    Staff member: Initiator's Display Name

    Start date: Start date

    End date: End date

    Note: Replace the red text with references. Use the Insert Reference option and locate the following references:
    Ÿ From the Item Properties tab, select Leave type, Start date,and End date.
    Ÿ From the Common tab, select Initiator's Display Name.

    Click the following image to see what your configurations should look like:

  11. From the ribbon, click General > Save. 

Now we have completed the configuration of notifying the manager when a staff member submits a leave request. Based on the response, we will configure the workflow to process the following results:

  • Approval: If leave request is approved, an email is sent to both HR and the initiator.
  • Rejection: If leave request is rejected, an email is sent to the initiator.

Let’s do that in the next steps.

Step 5: Notify the initiator if leave request is rejected

Use another Send Notification action to inform the employee when the leave request is rejected.

  1. Locate the Send notification action from the toolbox:
    1. In the search field, type the name of the action.
    2. Click the User interaction group. If an action is used several times, it also appears in the Commonly used group.
  2. Drag a Send Notification workflow action onto the first branch of the Request Approval action. The first branch is located on the left side of the canvas and indicates the Declined outcome.
  3. Double-click the Send Notification action to open the configuration dialog.
  4. To add a recipient of email notifying rejection of leave request:
    1. Click (Browse) next to the To field.
    2. Select the Lookup section.
    3. Click Initiator, then click Add.
    4. Click OK.
  5. To provide an informative Subject description:
    1. Click  (Insert Reference) next to the Subject field.
    2. In the Item Properties tab, double-click Leave Type and then click  OK.
    3. In the same field, type "has been rejected".
  6. In the Email body text box, type the following message:

    Your leave request for Start date to End date has been rejected.

     

    Note: Replace the red text with references. Use the Insert Reference option and locate the following references:
    Ÿ From the Item Properties tab, select Start date,and End date.

  7. From the ribbon, General > Save.

Step 6: Notify HR if leave request is approved

Now we can also add a Send Notification action to inform the HR Manager if a leave is approved for an employee.

  1. Locate the Send notification action from the toolbox. Do one of the following:
    • In the search field, type the name of the action.
    • Click the User interaction group. If an action is used several times, it also appears in the Commonly used group.
  2. Drag a Send Notification action onto the second branch of the Request Approval action. The second branch is located at the right side of the canvas and indicates the Approved outcome.
  3. Double-click the Send notification action to open the configuration dialog.
  4. To add the HR staff as recipient of the email notifying approval of leave request:
    1. In the To field, click (Browse).
    2. Select External email address section.
    3. Type the email address of the HR staff.
    4. Click Add and then click OK.

    Tip: Tip: You can also use an internal search for your HR department.

  5. In the Subject field, type "Leave request is approved".
  6. In the email body text box, type the following message:

    Leave Type request of Initiator's Display Name has been approved by Manager for  between Start date and End date.

    Note: Replace the red text with references. Use the Insert Reference option and locate the following references:
    Ÿ From the Common tab, select Initiator's Display Name, Manager.
    Ÿ From the Item Properties tab, select Leave Type, Start date,and End date.

  7. From the ribbon, General > Save.

Step 7: Notify initiator if leave request is approved

Instead of configuring a new Send Notification action from scratch, we can copy the Send Notification action from the first branch of the Request Approval branch to the second branch and then update the action to replace the recipient with the initiator.

  1. Click the drop-down arrow of the Send Notification action located on the declined branch of our Request approval action, and select Copy.

  2. Below the Send notification action that sends email notification to HR staff, right-click on the drop zone and select Paste.

  3. Double-click the new action to open the configuration dialog.

  4. In Subject and email body text box, replace the text "rejected" with "approved".
  5. From the ribbon, click General > Save.

Your workflow should look like the following:

Step 8: Save and publish the workflow

  1. In the Nintex Workflow 2016 ribbon, click Save.

  2. In the Title field, type “Leave Request”.

  3. In the Description field, type “Use this workflow to process leave requests”.

  4. Click Submit.

  5. In the Nintex Workflow ribbon, click Publish and then click Submit.

Congratulations! You have created you first workflow on SharePoint.

 

Next step:

Go to Part 3 : Design your first Nintex form in SharePoint 2016