What does RP.getReferringURL() mean

avinash kumar
Tera Expert

I have a UI action which has the condtion as

(RP.getReferringURL().indexOf("active") != -1) &&(gs.getUser().hasRoles() == false)

and in the related list called UI Action Visibility, we have restricted it to be visible only on self service view.

Now as a user with no role, when I open my changes, under related list for incident I can see this button. But when I search the same change using the global search, i don't see this button.

In general, I wanted to know below:

1. What does RP stands for.

2. What is a Referring URL and how is it constructed by service now.

1 REPLY 1

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Avinash,



RP determines the render type on the window. Please check section 20 for more info.


Extensions to Jelly Syntax - ServiceNow Wiki