can we use a record producer to create an incident using script

Shiva Kumar8
Kilo Guru

Hi Community,

is there a way I can create an incident using a record producer using script. if yes please help me.

Thanks.

1 ACCEPTED SOLUTION

Hi,

but why do you wish to populate variables?

User is not submitting record producer but having chat with VA

When submission happens via record producer then variables are populated

have a look on this for how to submit record producer via script; this might help you

How to Trigger change workflow/record producer from transform script

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

13 REPLIES 13

Prashant16
Kilo Guru

Hi Shiva,

You can have Incident table as target table. If you want a script for this, there is a script field available in the same record producer form. You can use it accordingly.

 

Thanks,

Prashant

Imran Ahmad1
Kilo Guru

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

 

Hii @Shiva Kumar 

 

Follow the steps it's tested

Change catalog and category in which you want to display record producer.

Map the field in Variable and select the fields which will from incident table.

 

 

Thanks:-

Imran Ahmad

 

If Correct Mark Helpful below:-

kguerra
Tera Contributor

Keep in mind if using the record producer to create a record that you find out which fields are required per Process and Standards. Integrations tend to be ran via Projects and work/adhere with ITSM Process and Standards teams, but those whom directly write to a table may miss the requirements needed on the record. 

Thanks,

Karen  

Yasser Al Kindi
Tera Contributor

So my requirement is that when logging an incident through VA, that the user is given the same set of questions to answer in sequence, as when logging an incident through service portal, which uses the reord producer to populate all the fields. Any ideas?