Want to add two buttons beside the "caller" field on incident form, like "show related incidents".

Prajwal Chauhan
Tera Expert

Want to add two buttons beside the "caller" field on incident form, like "show related incidents".

1. Button Name: Show related calls

Linked to the "Call" table - show all calls when the "caller" on the incident = "reported by" on the call.

2. Button name: Show related interactions

Linked to the "Interaction" table - show all interactions when "caller" on the incident = "opened for" on the call.

 

When you click on the button, a pop-up will display with all the filtered records from the respective tables.caller.png

 

caller.png

 

 

 

Thanks,

Prajwal

5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Prajwal Chauhan 

 

Greetings!!

 

OOTB , these are attribute at caller field. have a look OOTB

AGLearnNGrow_0-1710755201990.png

 

and you can build same as per your need.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @Dr Atul G- LNG 

 

Thanks for your quick response.

I did check that UI macro but didn't understand where I needed to change in the code. I have no prior knowledge of the tags that are used.

Hi @Prajwal Chauhan 

 

You need to create same the way created for incident records.

 

Create a UI macro with new name

and in that macro you need to write the code to show your required data. 

Then go to caller dictionary -- attribute and create a new attribute and in that in value filed use that macro name. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Simran Gadodiya
Mega Sage

Hi @Prajwal Chauhan 

Hope this helps you. Please refer below mentioned article.

https://www.servicenow.com/community/developer-forum/add-a-quot-show-caller-assets-quot-icon-next-to...

 

If this helps you mark it as helpful and correct.

Thanks