- 27 Jul 2022
- 3 Minutes to read
- Print
- DarkLight
Handling Email Response Replies
- Updated on 27 Jul 2022
- 3 Minutes to read
- Print
- DarkLight
Overview
Assigned Forms can process responses directly via email through a user replying to an email with an answer, clicking a link in an email, or offering both options. This means that to respond, users don’t need to open the assigned Form in the Portal and click a button. The user can instead reply directly via one of these two email-based options and the Form will take the path specified by the response.
Example
In this example, a comment will come back from the assigned user in an email.
Before creating the Flow to handle responses via email, an Email Response Job must first be configured. For more information on how this can be completed, please visit our Setting Up Email Response Job article.
In addition, a basic Assignment Form will be needed. Create one for this use case or import the attached Form. Note that all buttons in this example Form can be changed, unused, or different from the example.
- Now that the response job is configured, a new Flow will be created with an assigned Form. Begin in a Designer Folder and click the CREATE FLOW button located on the Action Bar at the bottom of the screen.
- Select CREATE for the default Flow template, name the Flow on the next screen, then select CREATE again. The Flow Designer will open.
- In the Flow Designer, drag the Done path from the Start step into blank canvas space. The Quick Add window will appear.
- Navigate to Flows, Rules, Forms, and Reports > Forms [Interaction] > [Current Folder] and select an available assignment Form.
- Click ADD to insert it to the Flow. Connect all outcome paths from the Form to the End step.
- Click the Form icon in the Flow Designer to populate the properties for this step on the right side.
- Locate the Assignment section of the properties and expand it. Locate the Assignment Type drop down list and pick the Assigned option.
- Since responses will be handled from outside the context of the Form (where normally responses would be handled via buttons on the Form), the alternate paths that will be allowed out of the Form need to be defined.
- Locate the Assignment Setup section with the edit button that has appeared in the properties, then click edit.
- When the Assignment Setup window appears, scroll down to the Additional Assignment Actions section and click Add New under the Action Definitions box.
- For an Approve Action Definition, please open the Add Action Definitions window and configure the options as shown in the screenshot below.
- For a Denied Action Definition, please open the Add Action Definitions window and configure the options as shown in the screenshot below.
- Click DONE in the Assignment Setup window when both Action Definitions are added.
- Back in the Flow Designer, navigate to the properties of the Form step again and locate the Email section, then expand the section.
- For the Email Response Handling sub-section, use the drop down list for Email Handling to select Email Response Only.
- The Email section now shows new options once the drop down selection has been made.
- Under the Email To Suggest Handling section, click Show Editor for the Body to configure the email body.
- In the Merge Text Editor that has appeared, follow the same configuration as the screenshot below.
- To get the items in gray with a dotted box around them in the editor, hover the mouse over the desired piece on the right side and click the + that appears.
- Once the configuration is complete, click SAVE.
- Now the same process must be completed for the Email When Response Does Not Match section.
- Repeat the two previous steps for the same configuration as the screenshot below.
- Return to the Assignment section and in the Assign To section, designate a test account for the Decisions environment that is accessible.
- Assignment Name can be changed to an input mapping of Constant using the Unknown drop down. In the provided text box, type in a name for the assignment.
- The Assignment Action Name can be ignored using the drop down.
- Connect the path of the new Approve and Denied Action based outcomes to the End Step.
- This completes the Flow, so click Close in the top left corner of the Flow Designer and save/close this Flow.
- Once the Flow is executed, the assignee will receive an email that looks as it does in the screenshot below.
- When the assignee clicks on the Approve or Denied link, they are provided with a template where they can leave a comment.
- After the assignee is finished adding comments, the response can then be sent back. The administrator will receive an email with the comments, which will appear as shown in the screenshot below.