Restrict related list records

Ram89
Kilo Contributor

Hi everyone,

I have to restrict CIs in the related list section of the incident form based on the caller, for example If I am the caller then I need to show CIs in the related list section which are just from my company.

Like if I am the caller and my company is TCS, then I should be able to see only TCS CIs when I try to add in the Affected CIs related list. Can somebody give me the script or way on how to achieve this.

Thanks,

Ramesh

6 REPLIES 6

that script you need to enhance since that requirement and your requirement is somewhat different

approach would still be the same i.e. how to add your own filter when you click Add button

1) send caller_id value

2) then inside that script include add your query

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Ram89
Kilo Contributor

I am new to scripting, can you help me out with a way here @Ankur Bawiskar.