Get to know about Portal ID or URL

CA5
Tera Contributor

Is there any method by which can identify from which Service Portal [IT or HR] , record producer or catalog item form is submitted?    @Ankur Bawiskar 

 

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@CA5 

sp_log table might help you

AnkurBawiskar_0-1687491452232.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Can we use this table on Record Producer Script?

 

We need to check Portal url/ID and based upon that Record Producer has to perform further actions.

@CA5 

you can always determine the URL in onLoad catalog client script and check which portal is that

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

Please let me know how can we do this?

 

Use Case - If RP is submitted from IT Service Portal then redirects to IT SP or if RP is submitted from ESC or Mobile app Portal then redirects to ESC or Mobile Aapp Portal