Sending Composite Data through REST
  • 18 Oct 2021
  • 1 Minute to read
  • Dark
    Light
  This documentation version is deprecated, please click here for the latest version.

Sending Composite Data through REST

  • Dark
    Light

Article summary

Overview

This tutorial demonstrates how to send composite data types via the POST method using Rest Service Integration. 

Example

Create a Rest Service Integration with the POST method. Then, add a custom Rest Header to the Service Integration. Finally, create a Flow to test sending the composite data type with the custom Rest Header.

  1. Begin in System > Integrations > External Services in the Portal.
  2. Select Add REST Service Integration on the Folder Actions Panel.

  3. In the resulting window define Service Name and Service URL

  4. Clicking okay will open the Designer Folder for the newly created REST Service. 
  5. Once there, click Add Method to Service.

  6. In the resulting pop-up window, define the Service Input Method POST, Service Content-Type JSON, and the Request Body. 
  7. Put the complex data type, in this example called data, in between two curly braces. 
  8. When finished, select OK to save and continue.

  9. Finally, create a Flow to test the Rest Service Integration
  10. In the Designer Folder, select CREATE FLOW on the Folder Actions Panel.

    CREATE ACTION BAR.jpg

  11. Name the Flow and select CREATE to proceed to the Flow Designer.

    2019-07-02_101647.PNG

  12. In the Flow Designer, add the Json Serialize step found under Data > Json
  13. Under Inputs, select Build Data next to the Object to Serialize
  14. From here map the input values from the Flow’s input step.

  15. Next, add the Service step from Integration > REST Services:

  16. The output of the Json Serialize step will be the input of the Rest Service step.

  17. Lastly, select Debug to test the Rest Service Request.


Was this article helpful?