sndev.io / docs

catalog-submit-producer

Submit a record producer via the Service Catalog API.

The catalog-submit-producer command submits a record producer using the Service Catalog API. Returns the created record number and sys_id. Record producers create records in target tables (e.g., incident, sc_task) via the service catalog interface.
sn catalog-submit-producer <producer_sys_id> [--vars '{...}'] [--json]

Submit a record producer via the Service Catalog API.

Arguments

NameRequiredDescription
producer_sys_idYessys_id of the record producer (sc_cat_item table with sys_class_name=sc_cat_item_producer).

Flags

FlagDefaultDescription
--varsJSON object of variable name/value pairs.
--jsonOutput full result as JSON.

Examples

sn catalog-submit-producer 3f1dd0320a0a0b99000a53f7604a2ef9 --vars '{"urgency":"2","comments":"Test"}'
INC0010006 (6baf4e1ddbba2300e890f71fbf961963)