Security Incident created from classic Ui

Rahulkalra
Tera Contributor

Hello Everyone,

 

I have below requirement:-

 I want to set Source field as “Backend” if security incident is getting raised from classic Ui of servicenow . How to achieve this ?

3 REPLIES 3

kaushal_snow
Mega Sage

@Rahulkalra ,

 

You can easily set the Source field to Backend by creating a Before Insert Business Rule on your Security Incident table and within it use something like if (!gs.action.getGlideURI().toString().startsWith('api/now/sp')) { current.source = 'Backend'; } to detect that the record is being created via the classic UI rather than Service Portal.......

 

If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.

 

Thanks and Regards,
Kaushal Kumar Jha - ServiceNow Consultant - Lets connect on Linkedin: https://www.linkedin.com/in/kaushalkrjha/

Hello @kaushal_snow ,

 

I want to create 2 business rules :-

 

1- For portal created Security incidents in this case source= Portal.

2- For Classic ui created Security incident in this case source= Backend. 

can you please elaborate more about the solution?

Ankur Bawiskar
Tera Patron
Tera Patron

@Rahulkalra 

how and from where are they creating from portal other than classic UI?

is there any record producer?

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