Step 3: Populate values dynamically into a Raw Request card
A helper flow enables you to set parameters and test the flow in isolation.
- In the same flow, click Add Event, and then select Helper Flow.
-
In the Inputs to this Flow field, enter the following:
key1
,value1
,key2
, andvalue2
. -
For the parameters, enter the key value pairs.
-
Click
. A branching function makes it easy to exclude cards in a flow. -
In the Branching card, set your condition to
1=1
, and then click Done. -
Drag and drop your HTTP Raw Request card to the Run when FALSE portion.
-
In the Run when TRUE portion, click
. -
In the Assign card, create the following fields and values:
- Method:
GET
- Accept:
application/json
- Content-Type:
application/json
-
In the Run when TRUE portion, click
. -
In the Construct card, create the following fields, and drag the contents from the Assign card.
- Content-Type
- Accept
-
In the Run when TRUE portion, click
. -
Drag and drop the key1 and value1 from the Helper Flow card to the Set card.
-
In the Run when TRUE portion, click
. -
Drag and drop the key2 and value2 from the Helper Flow card to the second Set card.
-
In the Run when TRUE portion, click
. -
Drag and drop the outputs from your Set cards to the object 1 and object 2 fields of the Merge card.
-
In the Run when TRUE portion, click
.
-
Drag and drop the Merge output field to the Raw Request query field.
-
Drag and drop the Construct output field to the Raw Request headers field.
-
Drag and drop the Helper Flow url field to the Raw Request url field.
-
As a best practice, consider naming the output fields that you dragged query and headers.
-
Save your flow, and then toggle the Flow is OFF switch to ON.