EmailAskUserResponse
Extract user's response from EmailAskUser reply. Returns the first textual response line of the provided entry that contains the reply body. Use ${lastCompletedTaskEntries} to analyze the previous playbook task containing the user's reply.
javascript · Common Scripts
Details
| ID | EmailAskUserResponse |
|---|---|
| Language | javascript |
| From Version | 5.0.0 |
| Tags | Condition |
README
Extract a user’s response from EmailAskUser reply. Returns the first textual response line of the provided entry that contains the reply body. Use ${lastCompletedTaskEntries} to analyze the previous playbook task containing the user’s reply.
Script Data
| Name | Description |
|---|---|
| Script Type | javascript |
| Tags | Condition |
Inputs
| Argument Name | Description |
|---|---|
| responseEntryId | The entry ID where EmailAskUser will complete when the user replies. |
| prefix | Text to remove from the start of the answer. If the response contains a known prefix that should be removed, this argument should be used. |
| suffix | Text to remove from the end of the answer. If the response contains a known suffix that should be removed, this argument should be used. |
Outputs
There are no outputs for this script.
commonfields: id: EmailAskUserResponse version: -1 name: EmailAskUserResponse script: '' type: javascript tags: - Condition comment: Extract user's response from EmailAskUser reply. Returns the first textual response line of the provided entry that contains the reply body. Use ${lastCompletedTaskEntries} to analyze the previous playbook task containing the user's reply. enabled: true args: - name: responseEntryId required: true default: true description: Entry ID where EmailAskUser will complete when user replies. - name: prefix description: Text to remove from the start of the answer. If the response contains a known prefix that should be removed, this argument should be used. - name: suffix description: Text to remove from the end of the answer. If the response contains a known suffix that should be removed, this argument should be used. scripttarget: 0 fromversion: 5.0.0 tests: - No test