Loading XML/JSON data from an input parameter

Prev Next

If you want to work with XML/JSON data but the data source is not available as a file or URL, there is another option besides loading XML/JSON data from a file or URL. dox42 can also receive XML/JSON via an input parameter, e.g., request body, and parse its content.

In dox42, input parameters influence how the data is to be structured when returned.

Principles of input parameters

  • An input parameter mostly refers to a specific data source and is set up within the data map in the Data Map Designer.

  • A data map can contain several input parameters, relating to either a single data source or several.

  • The value of an input parameter can be provided by another data field, free text, or a JSON request body, depending on the data source.

  • An input parameter’s syntax varies depending on the data source.

Prerequisites

Steps

  1. In Microsoft Word, Excel or PowerPoint, open your document template.

  2. Next, go to the dox42 ribbon and select Data Map.

    Toolbar displaying various functions like Generate, Data Map, and Refresh Template options.

    dox42 ribbon

    The Data Map Designer window opens and previously added data sources appear.

    Data map with no data sources

  3. Select Input Parameter.

  4. In the Input Parameter name text field enter a name for the parameter, for example RequestBody.

  5. From the Input type dropdown select Text.

  6. In the text box enter your XML/JSON data which you obtained from another source.

    Input parameter with JSON Request Body

  7. Select OK.
    A data field called RequestBody has been created.

  8. Select the XML/JSON data source from the Data Sources tab.
    The XML/JSON window opens.

  9. In the Data Source tab, enter a name for the new data source in the Name field.

    Note

    Names should follow your internal guidelines consistently to help template users understand and navigate your templates easily.

  10. Select GET from the URL/XML/JSON dropdown.

  11. Select the Insert Data Field button.
    The dox42 Data Fields explorer opens.

  12. Select the previously added RequestBody data field from the list and select OK.
    The XML/JSON data source now uses the input parameter’s request body.

    XML/JSON data loaded as data field from an input parameter

Result

You have loaded XML/JSON data from an input parameter.

Next step

© dox42 2026. All rights reserved.