LOOP Each record from a JSON file function

The LOOP Each record from a JSON file function in RPA.

Help CentreBuilding Processes

This article describes the RPA Loop functionality to each record from a JSON file.

For a full list of available functions, please read LOOP functions.


Description

The LOOP Each record from a JSON file function allows you to each record from a JSON file.


Setting it up

To use the LOOP Each record from a JSON file function, follow these instructions:

{{popups:rpas/add:action=loop-json}}

Once on a process map:

  1. Navigate to the process where you would like to add the LOOP Each record from a JSON file function
  2. Click on the green button’s drop-down (right side of the green button labelled “Process”)
  3. On the menu that appears, click on the “+ Activity” item
  4. From here you can select the LOOP Each record from a JSON file option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
FileYesText-The path to the JSON file
VariableYesText-Variable to store the current item
Max iterationsNoNumber-Maximum iterations

Output variables

VariableTypeDescription
VariableObjectThe current JSON item in each iteration

Errors

ErrorDescription
File not foundThe JSON file does not exist
Invalid JSONThe file does not contain valid JSON

Tips

  • Loops through items in a JSON array file

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.