What does RP.getReferringURL() mean
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2015 01:00 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-08-2015 01:04 AM
Hi Avinash,
RP determines the render type on the window. Please check section 20 for more info.
Extensions to Jelly Syntax - ServiceNow Wiki