Populate related record number in reference Field

Kusuma Sai
Mega Guru

Populate related record Incident number in to the Problem record reference Field

 

PRB.JPG

1 ACCEPTED SOLUTION

Tai Vu
Kilo Patron
Kilo Patron

Hi @Kusuma Sai 

Within OOTB, there's an UI Action named "Create Problem". This button is available in the Incident record.

You can find below.

URL: https://<instance_name>/sys_ui_action.do?sys_id=2f43c471c0a8006400a07440e49924c2

 

Upon clicking, it will generate a new Problem record through the function getProblemFromIncident in the script include IncidentUtils. And at the line 458, you should find it's setting value for the First reported by field.

Screenshot 2023-12-25 at 11.18.47.png

 

What is your use case that leads to creating a Problem from an Incident with an empty First reported by field?

 

Cheers,

Tai Vu

View solution in original post

2 REPLIES 2

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

Have you considered using Flow Designer for this? Zero code involved, and completely clickable up to your requirement.

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn

Tai Vu
Kilo Patron
Kilo Patron

Hi @Kusuma Sai 

Within OOTB, there's an UI Action named "Create Problem". This button is available in the Incident record.

You can find below.

URL: https://<instance_name>/sys_ui_action.do?sys_id=2f43c471c0a8006400a07440e49924c2

 

Upon clicking, it will generate a new Problem record through the function getProblemFromIncident in the script include IncidentUtils. And at the line 458, you should find it's setting value for the First reported by field.

Screenshot 2023-12-25 at 11.18.47.png

 

What is your use case that leads to creating a Problem from an Incident with an empty First reported by field?

 

Cheers,

Tai Vu