How to use parent record field value when create a new record from related list

Saurav Bhardwa2
Tera Contributor

In problem form we have created a new cmdb_ci extended outage related list. I have also created a custom field in outage table which is referencing the problem table. 
I have requirement, I wanted to auto-populate the problem number in the custom problem field when we are creating a outage record from related list. 
Can anyone please help me how to achieve this?

1 ACCEPTED SOLUTION

Pravindra1
Tera Guru

Hi @Saurav Bhardwa2 , It should auto populate if you have mapped Problem sys_id (Parent) to Outage record at the time of creation of Problem>Outage relationship.

Pravindra1_0-1685688774874.png

Here I have  mapped Task_Number with Parent Sys_ID, then Problem number is auto populated in Task number field.

Pravindra1_1-1685688857567.png

 

View solution in original post

9 REPLIES 9

Anil Lande
Kilo Patron

Hi,

Can you please share how your outage form looks like?

Is your field available on form?

 

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Are you using OOB outages related list to create Outage?

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande

Yes we are using OOB outage table. So from the problem related list when I create a new outage record, I want the number problem number should auto-populate.

SauravBhardwa2_0-1685679945175.png

 

In that case it is not required. As OOB list use Task Number field on Outage record stored the problem ID.

Not sure about your business case, you can use before business rule to populate problem field.

Use logic like below:

Screenshot 2023-06-02 at 11.34.44 AM.png

 

Screenshot 2023-06-02 at 11.34.57 AM.png

Please appreciate the efforts of community contributors by marking appropriate response as correct answer and helpful, this may help other community users to follow correct solution in future.
Thanks
Anil Lande