How to get record producer name in incident form

raj149
Giga Guru

Hello Experts,

 

I wish you good health .

 

From the incident module it isn't possible to in an easy manner to determine which self-service portal form was used to that specific incident. we can not see which forms were used to create which incidents.

 

How to get record producer name in incident form ...?

 

There is one table sc_item_produced_record this will store all incident data but there is no recent data in this table .

 

How to achieve this  ...?

 

Best Regards,

Raj

8 REPLIES 8

@raj149 

 

Ya one way is to include that line of script in all the record producers.

 

Other way is to write After BR on the 'sc_item_produced_record' as it shows which incident is created by which RP.

 

In After BR you can write condition Task Type as incident.

 

var gr = new GlideRecord('incident');

gr.get(current.task);

gr.u_record_producer=current.producer.name;

gr.update();

 

 

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful

Hello @priyasunku 

 

In sc_item_produced_record table recent data is not coming . Last record created on 2020 

 

I don't know what is the issue 

If you know please tell me.

 

Best Regards,

Raj

 

@raj149 

 

It is working in my PDI. could you please check once what is the issue.

priyasunku_0-1678443915144.png

 

 

If my answer solved your issue, please mark my answer as Correct & 👍Helpful

 

Martin Grosskop
Tera Guru

Hi Raj,

The Item Produced Record (sc_item_produced_record) should hold all the records that were produced via record producers:

 

MartinGrosskop_0-1678452145164.png

 

Regards,

Martin