This class may be used to perform query searches in tables specified by their IDs. Use the SimpleSearch methods in your server-side scripts.
This method performs a search query (specified in the text argument) on tables (specified with the tablesIDs argument). The tableIDs argument is an array of the sys_id type.
Parameter(s):
Name | Type | Mandatory | Default Value |
---|---|---|---|
text | String | Y | N |
tableIDs | Array | Y | N |
Return:
Type | Description |
---|---|
Array | This method returns an array of records of the SimpleRecord type. |
Example:
const searchManager = new SimpleSearch(); const results = searchManager.search('email', ['155931135900000083'/* task */]); results.map(foundRecord => { ss.info(`/record/${foundRecord.getTableName()}/${foundRecord.sys_id}`); }); //Info: /record/task/164579004293577819 //Info: /record/task/163696164398828017 //... |