{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":921,"path":"api-reference/server-api-reference/StreamGlobalAPI.md","title":"Stream - Scoped, Global","bundle":null,"doc_type":null,"release":"australia","body":"\n# Stream - Scoped, Global\n\nThe Stream API provides methods to interact with a stream of items such as records. For example, you can use the forEach\\(\\) method to update the state of each record in a stream returned by the GlideQuery API.\n\nYou can get a Stream object in these ways:\n\n-   Instantiate a Stream object using the constructor.\n-   Return a Stream object from the GlideQuery.select\\(\\) method. For more information, see [GlideQuery](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/GlideQueryGlobalAPI.md).\n\nThis method is static and does not require an instance of the class: [fromArray\\(\\)](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/StreamGlobalAPI.md).\n\nUse the Stream API in scoped or global server-side scripts. This API requires the GlideQuery \\[com.sn\\_glidequery\\] plugin.\n\n## Implementation\n\nThis API can work with the [GlideQuery](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/GlideQueryGlobalAPI.md) and [Optional](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/OptionalGlobalAPI.md) APIs in a builder pattern where the method calls chain together, each method building on the returned result of the previous method. Use methods to define the attributes of the query. The methods do not execute until you call a terminal method, a method that returns a query result, allowing you to define the requirements of the query before executing it.\n\nIf the query returns a single record, the system wraps the result in an Optional object. If the query returns a stream of records, the system wraps the result in a Stream object. These objects let you manage the result using a set of methods in each API.\n\nFor example, this script performs a query on the Task table, groups the records by priority, and returns each priority that has total reassignments greater than four.\n\n```\nvar query = new global.GlideQuery('task')\n    .where('active', true) //Returns new GlideQuery object with a \"where\" clause.\n    .groupBy('priority') //Returns new GlideQuery object with a \"group by\" clause.\n    .aggregate('sum', 'reassignment_count') //Returns new GlideQuery object with a \"sum(reassignment_count)\" clause.\n    .having('sum', 'reassignment_count', '>', 4) //Returns new GlideQuery object with a \"having reassignment_count > 4\" clause.\n    .select() //Returns a stream of records wrapped in a Stream object.  \n    .forEach(function (priority){ //Terminal method in the Stream class that executes the query and returns the result. \n      gs.info(\"Priority \" + priority.group.priority + \": \" + priority.sum.reassignment_count + \" reassignments\");\n    });\n```\n\nOutput:\n\n```\nPriority 1: 11 reassignments\nPriority 3: 6 reassignments\nPriority 5: 5 reassignments\n```\n\n## Terminal methods\n\nFor performance reasons, a query only fetches data when you call a terminal method. These are the terminal methods from the Stream class:\n\n-   [every\\(\\)](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/StreamGlobalAPI.md)\n-   [find\\(\\)](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/StreamGlobalAPI.md)\n-   [forEach\\(\\)](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/StreamGlobalAPI.md)\n-   [reduce\\(\\)](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/StreamGlobalAPI.md)\n-   [some\\(\\)](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/StreamGlobalAPI.md)\n-   [toArray\\(\\)](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/StreamGlobalAPI.md)\n\n**Parent Topic:**[Server API reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/api-server.md)\n\n## Stream - Stream\\(Function nextFn\\)\n\nInstantiates a Stream object.\n\nInstead of using this constructor, you can return a Stream object based on a query using the [GlideQuery](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/GlideQueryGlobalAPI.md) API.\n\n|Name|Type|Description|\n|----|----|-----------|\n|nextFn|Function|A function that retrieves the next item in the stream.|\n\nThis example shows you how to create a Stream object based on a random number generator. Make sure to include the limit\\(\\) method to avoid creating an infinite loop.\n\n```\nnew Stream(Math.random)\n   .map(Math.round)\n   .map(function (num) { \n      return num === 1 ? 'heads' : 'tails'; \n   })\n   .limit(10)\n   .forEach(gs.info)\n\n```\n\nOutput:\n\n```\n*** Script: tails\n*** Script: heads\n*** Script: tails\n*** Script: heads\n*** Script: tails\n*** Script: heads\n*** Script: tails\n*** Script: tails\n*** Script: tails\n*** Script: tails\n```\n\n## Stream - chunk\\(Number count\\)\n\nReturns results in batches of arrays, each containing the number of records passed to the method.\n\n|Name|Type|Description|\n|----|----|-----------|\n|count|Number|Number of records in each array returned from the stream.|\n\n|Type|Description|\n|----|-----------|\n|Stream|Object used to interact with a stream of items such as records.|\n\nThis example shows how to query a table and chunk the result into batches of arrays.\n\n```\nvar chunkResult = new GlideQuery('cmdb_ci_hardware')\n    .select('asset', 'purchase_date')\n    .limit(10)\n    .chunk(5) //Returns arrays of 5 sys_ids at a time\n    .forEach(function (chunk){ \n        gs.info(JSON.stringify(chunk, null, 2)); \n    });\n```\n\nOutput:\n\n```\n*** Script: [\n  {\n    \"asset\": \"2fa9680d3790200044e0bfc8bcbe5dfb\",\n    \"purchase_date\": \"2022-02-28\",\n    \"sys_id\": \"2ba9680d3790200044e0bfc8bcbe5dfc\"\n  },\n  {\n    \"asset\": \"73c1fa8837f3100044e0bfc8bcbe5ded\",\n    \"purchase_date\": \"2017-12-05\",\n    \"sys_id\": \"b4fd7c8437201000deeabfc8bcbe5dc1\"\n  },\n  {\n    \"asset\": \"cbc1ba8837f3100044e0bfc8bcbe5dad\",\n    \"purchase_date\": \"2017-12-05\",\n    \"sys_id\": \"25fd3c8437201000deeabfc8bcbe5dea\"\n  },\n  {\n    \"asset\": \"8fc1ba8837f3100044e0bfc8bcbe5da9\",\n    \"purchase_date\": null,\n    \"sys_id\": \"108a9205c611227500786e160f9d343e\"\n  },\n  {\n    \"asset\": \"27c1fa8837f3100044e0bfc8bcbe5dd8\",\n    \"purchase_date\": \"2017-06-06\",\n    \"sys_id\": \"a9a2d111c611227601fb37542399caa8\"\n  }\n]\n*** Script: [\n  {\n    \"asset\": \"93c1fa8837f3100044e0bfc8bcbe5d30\",\n    \"purchase_date\": \"2017-12-05\",\n    \"sys_id\": \"6b43105c37301000deeabfc8bcbe5db2\"\n  },\n  {\n    \"asset\": \"a2c0b1213784200044e0bfc8bcbe5de3\",\n    \"purchase_date\": \"2017-12-05\",\n    \"sys_id\": \"aac0b1213784200044e0bfc8bcbe5de3\"\n  },\n  {\n    \"asset\": \"33c1fa8837f3100044e0bfc8bcbe5def\",\n    \"purchase_date\": \"2017-12-05\",\n    \"sys_id\": \"d0e8761137201000deeabfc8bcbe5da7\"\n  },\n  {\n    \"asset\": \"53c1fa8837f3100044e0bfc8bcbe5d1f\",\n    \"purchase_date\": \"2017-12-05\",\n    \"sys_id\": \"53fdbc8437201000deeabfc8bcbe5d10\"\n  },\n  {\n    \"asset\": \"f1c031213784200044e0bfc8bcbe5de0\",\n    \"purchase_date\": \"2017-12-05\",\n    \"sys_id\": \"71c031213784200044e0bfc8bcbe5de1\"\n  }\n]\n```\n\nThis example shows how to create a child query using batches of IDs. When you call the flatMap\\(\\) method after using the chunk\\(\\) method, the system iterates over the batch of records instead of each individual record.\n\n```\nvar chunkResult = new global.GlideQuery('cmdb_ci_hardware')\n    .select('sys_id')\n    .map(function (device) { return device.sys_id; })\n    .chunk(5) //Returns arrays of 5 sys_ids at a time\n    .flatMap(function (deviceIds) {\n        return new GlideQuery('cmdb_sam_sw_install')\n            .where('installed_on', 'IN', deviceIds)\n            .select('software_model', 'installed_on');\n    })\n\ngs.info(JSON.stringify(chunkResult));\n```\n\n## Stream - every\\(Function predicate\\)\n\nApplies a predicate function to every item in the Stream object. If the predicate returns true for every item in the stream, the method returns true. If the predicate returns false for any item in the stream, the method returns false.\n\n|Name|Type|Description|\n|----|----|-----------|\n|predicate|Function|Predicate function to apply to every record or item inside the Stream object. The function must take each item in the stream as input and return a boolean.|\n\n<table id=\"table_uyn_x2f_4mb\" class=\"returns\"><thead><tr><th>\n\nType\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nBoolean\n\n</td><td>\n\nFlag that indicates whether the predicate function returns true for every item in the stream.\n\n Valid values:\n\n-   true: The predicate function returns true for every item in the stream.\n-   false: The predicate function does not return true for every item in the stream.\n\n</td></tr></tbody>\n</table>This example shows how to apply a predicate function to every item in a stream.\n\n```\nvar hasOnlyShortDescriptions = new global.GlideQuery('task')\n   .whereNotNull('description')\n   .select('description')\n   .every(function (t) { \n       return t.description.length < 10; \n       });\n\ngs.info(hasOnlyShortDescriptions);\n```\n\nOutput:\n\n```\nfalse\n```\n\n## Stream - filter\\(Function predicate\\)\n\nApplies a predicate function to each item in the Stream object. If the predicate returns true, the method returns the stream. If the predicate returns false, it returns an empty Stream object.\n\nFor better performance, use the where\\(\\), whereNotNull\\(\\), and whereNull\\(\\) methods in the GlideQuery class instead of this method where possible. See [GlideQuery](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/GlideQueryGlobalAPI.md).\n\n|Name|Type|Description|\n|----|----|-----------|\n|predicate|Function|Predicate function to apply to every record or item inside the Stream object. The function must take each item in the stream as input and return a boolean.|\n\n|Type|Description|\n|----|-----------|\n|Stream|Object used to interact with a stream of items such as records.|\n\nThis example shows how to check all records in the Task table against a defined filter. If the records match the filter, the system returns the stream of records. Otherwise, it returns an empty Stream object.\n\n```\nvar shoutingTasks = new global.GlideQuery('task')\n   .whereNotNull('description')\n   .select('description')\n   .filter(function (task) { \n       return task.description.toUpperCase() === task.description; \n   })\n```\n\n## Stream - find\\(Function predicate\\)\n\nReturns the first record or item in the Stream object that matches the predicate function. If no predicate function is provided, then the method returns the first record or item in the Stream.\n\n|Name|Type|Description|\n|----|----|-----------|\n|predicate|Function|Optional. Predicate function to apply to the items inside the Stream object. The function must take each item in the stream as input and return a boolean.|\n\n|Type|Description|\n|----|-----------|\n|Optional|Object containing the returned record.|\n\nThis example shows how to return the first record from the stream.\n\n```\nvar UserOptional = new global.GlideQuery('sys_user')\n   .where('active', true)\n   .where('company.name', 'ServiceNow')\n   .select()\n   .find()\n   .map(function (user) { \n      return JSON.stringify(user); \n   })\n\ngs.info(UserOptional);\n```\n\nOutput:\n\n```\nOptional<{\"sys_id\":\"babb4639b76233004fbc2089ee11a97f\"}>\n```\n\n## Stream - flatMap\\(function fn\\)\n\nApplies a function to every item in a stream. Returns another stream that you can iterate over.\n\nUse this method instead of map\\(\\) if the function returns a second stream of records.\n\n|Name|Type|Description|\n|----|----|-----------|\n|fn|Function|Function to apply to the result of the query that returns a Stream object.|\n\n|Type|Description|\n|----|-----------|\n|Stream|Object containing the stream of records updated after applying the function.|\n\nThis example shows you how to query the User table and then create a child query from the result. This example executes an N+1 query, which can cause performance issues. Avoid this use case in a production environment.\n\n```\nvar records = new global.GlideQuery('sys_user')\n   .where('last_login', '>', '2015-12-31')\n   .select('first_name', 'last_name')\n   .flatMap(function (u) {\n      return new global.GlideQuery('task')\n           .where('closed_by', u.sys_id)\n           .select('closed_at', 'description')\n           .map(function (t) {\n                return {\n                    first_name: u.first_name,\n                    last_name: u.last_name,\n                    description: t.description,\n                    closed_at: t.closed_at\n                 };\n           });\n      })\n   .limit(5)\n   .toArray(100);\n\ngs.info(JSON.stringify(records));\n```\n\nOutput:\n\n```\n[\n   {\n      \"first_name\":\"System\",\n      \"last_name\":\"Administrator\",\n      \"description\":null,\n      \"closed_at\":\"2020-08-23 13:14:56\"\n   },\n   {\n      \"first_name\":\"System\",\n      \"last_name\":\"Administrator\",\n      \"description\":null,\n      \"closed_at\":\"2020-08-23 13:07:43\"\n   },\n   {\n      \"first_name\":\"System\",\n      \"last_name\":\"Administrator\",\n      \"description\":null,\n      \"closed_at\":\"2020-06-15 06:59:05\"\n   },\n   {\n      \"first_name\":\"System\",\n      \"last_name\":\"Administrator\",\n      \"description\":null,\n      \"closed_at\":\"2020-08-23 13:07:33\"\n   },\n   {\n      \"first_name\":\"System\",\n      \"last_name\":\"Administrator\",\n      \"description\":null,\n      \"closed_at\":\"2020-08-23 13:07:14\"\n   }\n]\n```\n\n## Stream - forEach\\(Function fn\\)\n\nApplies the specified function to each record or item in the stream.\n\n|Name|Type|Description|\n|----|----|-----------|\n|fn|Function|Function to apply to each item in the stream.|\n\n|Type|Description|\n|----|-----------|\n|None| |\n\nThis example shows you how to print the result of each item in the stream.\n\n```\nvar firstNames = new global.GlideQuery('sys_user')\n   .select('first_name')\n   .forEach(function (u) { \n      gs.debug(u.first_name); \n   });\n```\n\nOutput:\n\n```\n*** Script: [DEBUG] survey\n*** Script: [DEBUG] Lucius\n*** Script: [DEBUG] Jimmie\n*** Script: [DEBUG] Melinda\n*** Script: [DEBUG] Jewel\n*** Script: [DEBUG] Sean\n*** Script: [DEBUG] Jacinto\n*** Script: [DEBUG] Krystle\n*** Script: [DEBUG] Billie\n*** Script: [DEBUG] Christian\n*** Script: [DEBUG] Naomi\n...\n```\n\n## Stream - fromArray\\(Object arr\\)\n\nReturns a Stream object that contains the values from the provided array.\n\n**Note:** This method is static. You do not need an instance of the class to use this method.\n\n|Name|Type|Description|\n|----|----|-----------|\n|arr|Array|Array of values to create the stream from.|\n\n|Type|Description|\n|----|-----------|\n|Stream|Object used to interact with a stream of items such as records.|\n\nThis example shows how to create a Stream object containing an array of values.\n\n```\nvar nameStream = Stream.fromArray(['Bob', 'Sue', 'Sam'])\n   .map(function (name) { \n      return name.toUpperCase(); \n   })\n   .toArray(3);\n\ngs.info(JSON.stringify(nameStream));\n```\n\nOutput:\n\n```\n[\"BOB\",\"SUE\",\"SAM\"]\n```\n\n## Stream - limit\\(Number count\\)\n\nLimits the number of results returned by the stream.\n\nFor better performance, use the limit\\(\\) method in the GlideQuery class where possible. See [GlideQuery](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/GlideQueryGlobalAPI.md). You may need to use this method to limit results with the Stream.flatMap\\(\\) method.\n\n|Name|Type|Description|\n|----|----|-----------|\n|count|Number|Number of records to return.|\n\n|Type|Description|\n|----|-----------|\n|Stream|Object used to interact with a stream of items such as records.|\n\nThis example shows you how to limit the results returned from the Stream.flatMap\\(\\) method.\n\n```\nvar records = new global.GlideQuery('sys_user')\n   .where('last_login', '>', '2015-12-31')\n   .select('first_name', 'last_name')\n   .flatMap(function (u) {\n      return new GlideQuery('task')\n           .where('closed_by', u.sys_id)\n           .select('closed_at', 'description')\n           .map(function (t) {\n                return {\n                    first_name: u.first_name,\n                    last_name: u.last_name,\n                    description: t.description,\n                    closed_at: t.closed_at\n                 };\n           });\n      })\n   .limit(5)\n   .forEach(function (task){\n      gs.info(JSON.stringify(task, null, 2));\n   });\n```\n\nOutput:\n\n```\n*** Script: {\n  \"first_name\": \"System\",\n  \"last_name\": \"Administrator\",\n  \"description\": null,\n  \"closed_at\": \"2021-10-04 13:40:16\"\n}\n*** Script: {\n  \"first_name\": \"System\",\n  \"last_name\": \"Administrator\",\n  \"description\": null,\n  \"closed_at\": \"2021-10-04 13:40:22\"\n}\n*** Script: {\n  \"first_name\": \"System\",\n  \"last_name\": \"Administrator\",\n  \"description\": null,\n  \"closed_at\": \"2021-10-04 13:40:27\"\n}\n*** Script: {\n  \"first_name\": \"System\",\n  \"last_name\": \"Administrator\",\n  \"description\": null,\n  \"closed_at\": \"2021-10-04 13:40:31\"\n}\n*** Script: {\n  \"first_name\": \"System\",\n  \"last_name\": \"Administrator\",\n  \"description\": null,\n  \"closed_at\": \"2021-10-04 13:40:54\"\n}\n```\n\n## Stream - map\\(Function fn\\)\n\nApplies a function to each item in a stream and returns the updated Stream object.\n\n|Name|Type|Description|\n|----|----|-----------|\n|fn|Function|Function to apply to the result of the query that takes the each item in the stream as input.|\n\n|Type|Description|\n|----|-----------|\n|Stream|Object containing the stream of records updated after applying the function.|\n\nThis example shows you how to apply a function to every item in the stream.\n\n```\nvar users = new global.GlideQuery('sys_user')\n   .whereNotNull('first_name')\n   .select('first_name')\n   .map(function (u) { \n      return u.first_name.toUpperCase(); \n   })\n   .toArray(100);\n\ngs.info(JSON.stringify(users));\n```\n\nOutput:\n\n```\n[\n   \"SURVEY\",\n   \"LUCIUS\",\n   \"JIMMIE\",\n   \"MELINDA\",\n   \"JEWEL\",\n   \"SEAN\",\n   \"JACINTO\",\n   \"KRYSTLE\",\n   \"BILLIE\",\n   \"CHRISTIAN\",\n   ...\n]\n```\n\n## Stream - reduce\\(function reducerFn, Any initialValue\\)\n\nExecutes a reducer function on each item in the stream, resulting in single output value.\n\nThis method is similar to the native JavaScript reduce\\(\\) method. For more information, see [w3schools documentation](https://www.w3schools.com/jsref/jsref_reduce.asp).\n\n<table id=\"table_ogx_bff_4mb\" class=\"parameters\"><thead><tr><th>\n\nName\n\n</th><th>\n\nType\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nreducerFn\n\n</td><td>\n\nFunction\n\n</td><td>\n\nFunction to apply to each item in the stream that reduces the stream to a single value. This function must take two arguments: -   `acc`: Accumulator that accumulates all values returned by the function.\n-   `cur`: Current item being accumulated in the array.\n\n</td></tr><tr><td>\n\ninitialValue\n\n</td><td>\n\nAny\n\n</td><td>\n\nValue passed to the function as the initial value.\n\n</td></tr></tbody>\n</table>|Type|Description|\n|----|-----------|\n|Any|Accumulated total of all items returned by the reducer function.|\n\nThis example shows you how to return the record with the longest name from the User table.\n\n```\nvar longestName = new global.GlideQuery('sys_user')\n   .whereNotNull('first_name')\n   .select('first_name')\n   .reduce(function (acc, cur) {\n       return cur.first_name.length > acc.length\n           ? cur.first_name\n           : acc;\n       }, '');\n\ngs.info(JSON.stringify(longestName));\n```\n\nOutput:\n\n```\n\"ATF_TestItilUser1\"\n```\n\n## Stream - some\\(Function predicate\\)\n\nApplies a predicate function, a function that takes a single value and returns true or false, to each item in the stream. If the predicate returns true for any item in the stream, the method returns true.\n\n|Name|Type|Description|\n|----|----|-----------|\n|predicate|Function|Predicate function to apply to the items inside the Stream object. Must return a Boolean value.|\n\n<table id=\"table_r4v_v2f_4mb\" class=\"returns\"><thead><tr><th>\n\nType\n\n</th><th>\n\nDescription\n\n</th></tr></thead><tbody><tr><td>\n\nBoolean\n\n</td><td>\n\nFlag that indicates whether the predicate function returned true for an item in the stream.\n\n Valid values:\n\n-   true: The predicate function returned true for an item in the stream.\n-   false: The predicate function did not return true for an item in the stream.\n\n</td></tr></tbody>\n</table>This example shows how to check whether any descriptions in the Task table are over 1,000 characters long.\n\n```\nvar hasLongDescriptions = new global.GlideQuery('task')\n   .whereNotNull('description')\n   .select('description')\n   .some(function (t) { \n      return t.description.length > 1000; \n   });\n\n\ngs.info(hasLongDescriptions);\n```\n\nOutput:\n\n```\nfalse\n```\n\n## Stream - toArray\\(Number count\\)\n\nReturns an array containing the given number of items from the stream.\n\n|Name|Type|Description|\n|----|----|-----------|\n|count|Number|The maximum number of items from the stream to return in the array.|\n\n|Type|Description|\n|----|-----------|\n|Array|Array containing the given number of items from the stream.|\n\nThis example shows you how to transform a stream of records into a JavaScript array.\n\n```\nvar users = new global.GlideQuery('sys_user')\n    .limit(10)\n    .select('first_name', 'last_name')\n    .toArray(50);\n\ngs.info(JSON.stringify(users));\n```\n\nOutput:\n\n```\n[\n   {\n      \"first_name\":\"Jewel\",\n      \"last_name\":\"Agresta\",\n      \"sys_id\":\"02826bf03710200044e0bfc8bcbe5d64\"\n   },\n   {\n      \"first_name\":\"Sean\",\n      \"last_name\":\"Bonnet\",\n      \"sys_id\":\"02826bf03710200044e0bfc8bcbe5d6d\"\n   },\n   {\n      \"first_name\":\"Jacinto\",\n      \"last_name\":\"Gawron\",\n      \"sys_id\":\"02826bf03710200044e0bfc8bcbe5d76\"\n   },\n   {\n      \"first_name\":\"Krystle\",\n      \"last_name\":\"Stika\",\n      \"sys_id\":\"02826bf03710200044e0bfc8bcbe5d7f\"\n   },\n   {\n      \"first_name\":\"Billie\",\n      \"last_name\":\"Cowley\",\n      \"sys_id\":\"02826bf03710200044e0bfc8bcbe5d88\"\n   },\n   {\n      \"first_name\":\"Christian\",\n      \"last_name\":\"Marnell\",\n      \"sys_id\":\"02826bf03710200044e0bfc8bcbe5d91\"\n   }\n]\n```\n\n"}}