Determine if a requested item submitted from the Service Portal or the native service catalogue UI

Mussie
ServiceNow Employee
ServiceNow Employee

Hi Guys,

Is there a way I can determine if a requested item record is submitted via the Service Portal or the native service catalogue?

Mussie

5 REPLIES 5

Jon Barnes
Kilo Sage

You could put a true/false field on the form called “native UI”. And then create an onload catalog client script that hides the field and sets it to true. And make the client script run only on desktop.

 

Then that variable will be true if submitted from native ui.

 

Mussie
ServiceNow Employee
ServiceNow Employee

Thanks Jon, I will give it a try and let you know. TBH, I was hoping there some OTB field that might help me differentiate these.

Mussie

Mussie
ServiceNow Employee
ServiceNow Employee

Hi Guys,

sp_log table can be used to identify the records created from Portal. Please note that the table also keeps record of views and other activities in portal. So use Type field values such as 'Task View' to fetch the right record.

Musie

Tejaswini9
Tera Expert

Hello Mussie,

Were you able to find a solution for this, my client is also asking me the same question.

Kindly share the solution if you found and it will be very helpful for me and others as well.

 

Thank you.