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

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

why not have record producer with target table as incident itself?

what's your business requirement?

Regards
Ankur

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

Hi Ankur,

 

I'm trying to create an incident using an existing record producer using script in virtual agent

Hi,

if you are using Virtual agent then in the VA utility itself you can create incident without any record producer dependency

How do I create an Incident via the Virtual Agent?

How to create incident through the virtual agent chat bot?

Regards
Ankur

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

Hi Ankur,

I've been through the above links but, I want to create an incident that is already configured in our service catalog for example we have an item named "Report an application issue" if we create a ticket using that it will create an incident, so i want to use the same item to create incident using virtual agent.