RESTAPIRequestBody - hasNext()

Determine if there are additional entries in the request body.

Use this method with the nextEntry() method to iterate over multiple request body entries.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
boolean True if there are additional entries available. This method returns true only once if the request contains a single entry.
var requestBody = request.body;
requestBody.hasNext(); // returns true if the request contains a single entry or multiple entries

//calling second time
requestBody.hasNext(); // returns false if the request contains a single entry, or true if the request contains multiple entries