The CreatorCon Call for Content is officially open! Get started here.

Passing the widgets data to a record producer.

Kristoffer Mon1
Giga Expert

I've included a widget into my record producer.

The widget is basically a table where one can "add rows" and "edit, save, and delete inline."     Is it possible to pass widget's data object to the record producer's catalog script?

What i'd like to do is iterate over the widget's data object and insert records in a related table; where each record inserted has the sys_id of the record produced.

1 REPLY 1

chirag_bagdai
ServiceNow Employee
ServiceNow Employee

The best practise is to clone "SC Catalog Item" and modify as per your requirement. You can include your custom widget data into "SC Catalog Item" cloned widget and add condition in server and HTML (ng-if)   for checking if data.sys_id   == record producer sys_id then only your custom code should execute.