
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2014 09:28 AM
I'm creating a CMS section for our Human Resources division and I want to be able to pass a URL with a sys_id to a user and when the user goes to that URL a specific record opens in an iframe in the CMS.
In the IFrame's URL block is there a way to grab the passed sys_id from the URL? (The frame name is gsft_main.)
For example, I want to have a URL like this:
my_instance.service-now.com/hrss/review_file.do?sys_id=hash
in the review_file page's Iframe, I want to load the record based on the URL's passed sys_id value so the user can review and update the record.
Thanks in advance for any help.
Rick Forristall
Goodwill of Central Arizona
Solved! Go to Solution.
- Labels:
-
Service Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2014 11:10 AM
Hi Rick,
Sorry, I seem to have misunderstood your requirement. Content Management > IFrames are for static URLs. Dynamic properties can not be passed to them in that way.
What you will likely need is a Custom Content Type as it appears as though you are linking to records on a custom table. To create a Content Type successfully you will need to create:
1. Content Type: See the incident content type as an example (Creating Content Types - ServiceNow Wiki)
2. Page Detail Settings: This provides the dynamic iFrame you will need
3. Detail Page: This is the CMS page that will include the Page Detail block above. It also provides the URL you will link to
Once you set this up, you will be able to pass the sys_id parameter in a url similar to the following:
<instance name>.service-now.com/ess/<page_detail_name>.do?sysparm_document_key=<table_name>,<sys_id>
Example:
<instance name>.service-now.com/ess/incident_detail.do?sysparm_document_key=incident,46e18c0fa9fe19810066a0083f76bd56
Email Notifications - ServiceNow Wiki
Edit: Above is the documented, standard way. You could technically shortcut this by creating a page and a custom dynamic block. The dynamic block could use the RP method above to get a sys_id parameter and pass it into an iFrame tag's url.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2014 10:02 AM
Hi Rick,
I believe RP.getParameterValue is what you are looking for assuming you wish to access it from the review_file ui page.
Extensions to Jelly Syntax - ServiceNow Wiki

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2014 10:16 AM
Travis,
Thanks for the reply.
My challenge is how to use this inside the URL block in the IFrames block.
(Content Management >IFrames)
I tried this - but it doesn't seem to work. And I can't see how to add XML to this block:
u_gica_job_requisition.do?sysparm_query=sys_id=${RP.getParameterValue('sysid')}&sysparm_view=hrss
Any ideas?
Thanks again,
Rick Forristall
Goodwill of Central Arizona
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2014 11:10 AM
Hi Rick,
Sorry, I seem to have misunderstood your requirement. Content Management > IFrames are for static URLs. Dynamic properties can not be passed to them in that way.
What you will likely need is a Custom Content Type as it appears as though you are linking to records on a custom table. To create a Content Type successfully you will need to create:
1. Content Type: See the incident content type as an example (Creating Content Types - ServiceNow Wiki)
2. Page Detail Settings: This provides the dynamic iFrame you will need
3. Detail Page: This is the CMS page that will include the Page Detail block above. It also provides the URL you will link to
Once you set this up, you will be able to pass the sys_id parameter in a url similar to the following:
<instance name>.service-now.com/ess/<page_detail_name>.do?sysparm_document_key=<table_name>,<sys_id>
Example:
<instance name>.service-now.com/ess/incident_detail.do?sysparm_document_key=incident,46e18c0fa9fe19810066a0083f76bd56
Email Notifications - ServiceNow Wiki
Edit: Above is the documented, standard way. You could technically shortcut this by creating a page and a custom dynamic block. The dynamic block could use the RP method above to get a sys_id parameter and pass it into an iFrame tag's url.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-16-2014 01:05 PM
Travis,
Thanks once again for the rapid reply. I will be working on this today and will update on my results.
Thanks again,
Rick Forristall
Goodwill of Central AZ