HTTP Request with Form Data - Data Flow Template

httprequestwithForm.png

Overview

This Data Flow template is made up of two Data Operations that allow app builders to make an HTTP Post request to an API.

In Connections Builder, Data Flow templates can be found with pre-populated sample data. However, to meet the requirements of their Journey, app builders should perform the necessary adjustments, such as adding other Data Ops.

HTTP Request with Form Data Operations

This Data Flow contains four parts:

Inputs

The Start pane keeps track of the inputs required by the Data Flow. 

  • Sample Inputs:

  • Service: no service selected
  • Method: POST - to submit data
  • URL: URL endpoint for the  request
  • Allow non-compliant HTTP headers: box unchecked
  • Content-Type: “application/json”
  • Headers: HTTP Parameter
    • Body: “name” and “email” values
  • Query Parameters: no parameter set
  • Form Parameters: no parameter set
  • Had paging?: box unchecked
  • Run Results: AirData Variables of type Any that automatically created to hold the results of this Operation. 
    • result
    • rawResult
    • request

  • Transform Expression: Airscript expression to check for errors
  • Output Format: Variable
  • Type: Text
  • Run Results: final_result output Variable of type Text that is automatically created to hold the result of this Operation.

Output

The End step is where variables from the Data Flow can be used as an output..

  • No sample Return Value

Use Cases

  • Allow app builders to submit data to Airkit.