When you create or open an import flow step that uses an HTTP-based connector, the Preview & send panel on the right allows you to preview import requests while configuring flows. Import previews allow you to see the constructed request and a sample record that represents what integrator.io will send to the destination application. You can then send the sample record to generate a response from the destination application, and use the response data as a reference when configuring response mappings.
Note
The import preview request will not be sent to the destination application unless you send a sample request.
Click Preview to retrieve a sample record to be imported into your destination application. You can use this data as a reference when configuring your import settings to ensure optimum results.
Click Edit mock input to modify the sample record to account for alternate record types that might not be represented by the sample record if you haven't yet configured your export, or are unable to retrieve a sample record that contains the right data for your import use case.
When you are satisfied with the sample record's data and structure, click Done.
Note
If your mock data has group records enabled such that the record structure groups records in multiple arrays as follows: [[{ }, { }], [{ }]]
the Edit mock input editor will return an error, but the import will still succeed when you run the flow.
In the Edit mock input window, click Fetch latest input data in the upper right corner of the window to see the latest mock input data from the configured flow in the input field. The refreshed data includes the changes made to the flow steps prior to import and it also discards mock input edits without waiting for the session to expire or reseting the mock input.
Click Done. A confirmation message displays once the data is successfully retrieved.
The mock input to be sent to the import application displays as read-only text in the HTTP request section.
Request URL: displays the endpoint that receives the request when the flow runs.
HTTP request: This is the request that integrator.io sends to the import application you are connecting with. You can click Headers to review the information included in the request's header, and Other to see additional information like the method of the request to be sent.
Once you are satisfied with the structure of the sample request to send to the import application, you can send the sample record to the import application to generate a response. You can then view the response data to use as a reference when configuring response mappings.
Toggle the import preview panel to Send.
Click Send to import your sample record to the destination application to generate a response.
HTTP response: This is the response returned by the import application. You can also view the headers or any information returned by the response by clicking Headers or Other .
The Parsed output tab allows you to review any platform-processed response data, success and error messages, or any other data returned from the import application. For more information on response mapping, see Response mapping vs. results mapping.
Comments
Please sign in to leave a comment.