Script to Create a Record Producer Instance/Record

Neil Santucci
Tera Contributor

Hi,

We are in the process of creating multiple record producers on the incident table. Works fine when you create incidents through the portal but I also need to be able to script their creation. The new GlideRecord('TableName') function doesn't allow you to specify a record producer and seems to use the first one created as a default. There also doesn't seem to be a glide function to create record producer instances.

 

Does anyone know if there is a glider function or of any code that would resolve this?

 

thanks

Neil

 

1 REPLY 1

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @Neil Santucci ,

 

you can make use of  CART API which will allow you can script and create a catalog request via REST. (EOD record producer is also a catalog kind...) refer the below link on how to get started....

How to submit a catalog item using the Rest API

 

check this link on how to use Script for that

How to Trigger change workflow/record producer from transform script

 

I hope this helps...


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect