Replicate records from Service-Now to local disk
npm install sn-projectExport files (records extending sys_metadata) from Service-Now to a nodejs like project on disk.
Inspired by jmbauguess/ServiceNowScriptDocumenter
Add the table-name (ClassName) to config/entities.json in following format:
``js`
{
"sys_variable_value": { // table-name
"name": "Values", // display name (used for folder name)
"key": "
"alias": ["sysauto_script", "wf_workflow_schedule"], // extending tables with the same rule
"json": true, // export file as json
"query": "variable.internal_type=script^ORvariable.internal_type=script_plain^ORvariable.internal_type=script_server", // filter on the objects
"fields": {
"value": ".js" // fields to be exported
},
"subDirPattern": "
}
}
`
take first not null value
displayValue of the field
optional displayValue of the field
optional field
default 'global' if empty