|
| 1 | +# Dynamic Record Finder - Scripted REST API |
| 2 | +## Overview |
| 3 | +The **Dynamic Record Finder** is a developer utility in ServiceNow that allows you to fetch records from any table dynamically using query parameters based on: |
| 4 | +- Table name |
| 5 | +- Selected fields |
| 6 | +- Filters (encoded query) |
| 7 | +All returned data is in JSON format. |
1 | 8 |
|
| 9 | + |
| 10 | +### API Details |
| 11 | +- **API Name**: Dynamic Record Finder |
| 12 | +- **API ID**: dynamic_record_finder |
| 13 | +- **ResourceName**: find |
| 14 | +- **Relative Path**: /find |
| 15 | +- **HTTP Method**: GET |
| 16 | +- **Query Parameter**: table,fields,query,limit |
| 17 | + |
| 18 | +## Request Format |
| 19 | + |
| 20 | +### Example Request |
| 21 | +GET https:// instance.service-now.com/api/1819147/dynamic_record_finder/find?table=incident&fields=number%2Cshort_description&limit=20&query=category%3Dsoftware |
| 22 | +### Example Response |
| 23 | +```json |
| 24 | +{ |
| 25 | + "result": { |
| 26 | + "table": [ |
| 27 | + "incident" |
| 28 | + ], |
| 29 | + "fields": [ |
| 30 | + "number", |
| 31 | + "short_description" |
| 32 | + ], |
| 33 | + "status": [ |
| 34 | + { |
| 35 | + "number": "INC0000012", |
| 36 | + "short_description": "Customer didn't receive eFax" |
| 37 | + }, |
| 38 | + { |
| 39 | + "number": "INC0000034", |
| 40 | + "short_description": "Does not look like a backup occurred last night" |
| 41 | + }, |
| 42 | + { |
| 43 | + "number": "INC0000038", |
| 44 | + "short_description": "my PDF docs are all locked from editing" |
| 45 | + }, |
| 46 | + { |
| 47 | + "number": "INC0000006", |
| 48 | + "short_description": "Hangs when trying to print VISIO document" |
| 49 | + }, |
| 50 | + { |
| 51 | + "number": "INC0009004", |
| 52 | + "short_description": "Defect tracking tool is down." |
| 53 | + }, |
| 54 | + { |
| 55 | + "number": "INC0000015", |
| 56 | + "short_description": "I can't launch my VPN client since the last software update" |
| 57 | + }, |
| 58 | + { |
| 59 | + "number": "INC0000019", |
| 60 | + "short_description": "Can't launch 64-bit Windows 7 virtual machine" |
| 61 | + }, |
| 62 | + { |
| 63 | + "number": "INC0000027", |
| 64 | + "short_description": "Please remove the latest hotfix from my PC" |
| 65 | + }, |
| 66 | + { |
| 67 | + "number": "INC0000046", |
| 68 | + "short_description": "Can't access SFA software" |
| 69 | + }, |
| 70 | + { |
| 71 | + "number": "INC0000051", |
| 72 | + "short_description": "Manager can't access SAP Controlling application" |
| 73 | + }, |
| 74 | + { |
| 75 | + "number": "INC0000052", |
| 76 | + "short_description": "SAP Financial Accounting application appears to be down" |
| 77 | + }, |
| 78 | + { |
| 79 | + "number": "INC0000054", |
| 80 | + "short_description": "SAP Materials Management is slow or there is an outage" |
| 81 | + }, |
| 82 | + { |
| 83 | + "number": "INC0009005", |
| 84 | + "short_description": "Email server is down." |
| 85 | + } |
| 86 | + ] |
| 87 | + } |
| 88 | +} |
0 commit comments