creating an incident from a case.

Nishant16
Tera Expert

I am creating an incident from a Case using the OOB UI action 'Create Incident', however the relationship on Case record is not getting created. i.e in the related records the 'incident' field is still blank.

On the incident record though the parent is correctly populated with the originating case number.

How can i check and update the Parent Case record to show the incident field with incident number created from case?

7 REPLIES 7

Hi Nishant,

Use caseGr.addQuery('sys_id', current.parent); instead of caseGr.addQuery('incident', current.sys_id);

This should solve your problem.

Cheers!

Kartik Sethi
Tera Guru
Tera Guru

Hi @Nishant 

 

Ideally, it should get created as you have mentioned that on the Incident record, Originated from Case field is populated.

 

Please provide the screenshot of the Related List which is not showing the data.

 

Thanks and regards,

Kartik

Community Alums
Not applicable

Hello ,

Can you please attach the screenshot of the code to create multiple incidents from a case?