Script to Create a Record Producer Instance/Record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2024 06:21 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-03-2024 06:27 AM
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....