Get Email Headers action
Use the Get Email Headers action in inbound and in-queue email flows to get the email headers in a variable of the JSON data type.
This action makes the MIME Message-ID and other email header fields accessible, allowing you to build flows that process emails based on context. For example, by adding email header fields to participant data, you can attach contextual metadata to email interactions, enabling dynamic routing decisions and providing agents with relevant header information (such as priority or importance) for improved context during interaction handling.
- To retrieve a specific set of email headers, configure the Get Email Headers action with an optional input of up to five header names.
- The Get Email Headers action retrieves only the headers from the first email in a threaded conversation.
| Field | Description |
|---|---|
| Name field | Type a distinctive name for the action. The label you enter here becomes the action’s name displayed in the task sequence. |
| Email Header Names | Specify the email headers to retrieve.
|
| Email Headers Result | Type a distinctive name for the variable of the JSON data type that the action uses to return the email headers in. |
| Failure Outputs | These outputs allow the flow author to map the results of any resulting errorType and errorMessage variables when the Get Email Headers action takes the failure path.
Note: Hover over the information icon next to errorType to display the list of allowable errorType values. Genesys Cloud checks failure path scenarios and if none of them are met, Genesys Cloud retrieves the email headers. You can use the following errorType values:
|
[NEXT] Was this article helpful?
Get user feedback about articles.