- 21 Mar 2022
- 1 Minute to read
- Print
- DarkLight
Accessing HTTP Headers via Flow
- Updated on 21 Mar 2022
- 1 Minute to read
- Print
- DarkLight
Overview
Due to the possibility that some REST calls may not contain Body content, and some integrations may require information not found in the Body, oftentimes a user may need to obtain Header data. Headers contain certain things that pertain to a REST service such as Authorization or Authentication information, the type of REST method (such as GET, POST, PATCH, etc..), and custom application-specific header information.
To aid in obtaining this information, users may utilize a workflow to obtain HTTP Headers. The following example below demonstrates how to achieve this via Flow in Decisions.
Example
- From a Designer Project, select CREATE FLOW and CREATE a new Flow.
- From the Flow Designer, connect the Start step to the End step.
- Select the End step to navigate to its Properties tab; then, under DATA > Output click SHOW EDITOR.
- From the Output Data Designer, select DataPair from the TYPE dropdown, check the IS LIST box, and provide a NAME. Then click the Edit icon (pencil) and then Pick.
From the Pick Data For Input window, select Flow Data.RequestHeaders/All Items as Array, then click DONE.
Save the Output Data.
Save the Flow, then click the Debug link from the top Action bar. Click START DEBUGGING.
After the Flow runs, select the End step, then select Execution 1 > View Output Data.
Output Data ResultsThe resulting Output Data will be a list of each DataPair found within the HTTP Headers.