Albato
  • Language
    En
    English
    Portuguese
    Spanish
  • Welcome to Albato Help

    Response Section


    IN THIS ARTICLE

    General information

    Set up the response parser in the Response tab for the completed HTTP request. The created fields will take values from the response and save them to the fields of the entity.
    Unlike the Request tab, here in the right field select the displayed entity.

    upload_8621905661818150023.jpg

    Content-type
    Indicate the format of the request response to receive. Available options:

    • JSON
    • XML
    • urlEncoded

    Specify the request format in Response tab, as the request may be urlEncoded, and the response may be in JSON.

    The response will be expected strictly in the selected format of the widget. If the response comes in a different format, parsing fails.

     

    The path to the Array

    Use this field if the response contains data in an array of unlimited objects (for example, API triggers that make a request to get a list of entities).

    If the data in the response comes in this form:

    "data":[ { "name":"John", "phone":"+19681112233" } { "name":"Peter", "phone":"+19681112244" } ]

    Аnd you need to receive both objects, then put a check at a “Return data array” box. Specify the mapping to the array, in this case it is data. In the created fields, the mapping can be specified without a path to this array.

    You can also check the box but leave the field empty, if the data comes at the root of the array, for example:

    [{ "name":"John", "phone":"+19681112233" } { "name":"Peter", "phone":"+19681112244" }]

    Trigger with such setting will be started as many times as there are objects in the response.

    Did this answer your question?