- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2019 05:03 AM
Hello Friends,
Please help me here, from emails hyperlinks we are opening a UI Page and updating table records.
How do get ticket information to query into table and update tickets in UI Page.
Thanks,
Basant
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2019 03:23 AM
Hi Basant,
So url is coming proper.
can you try this to get the value of url parameter sysparm_sysId
var recordSysId = gs.action.getGlideURI().getMap().get('sysparm_sysId')
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2019 08:21 AM
Hi Basantsoni,
I believe you can pass the record syd_id. Can you share the script so that I can help?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2019 09:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2019 10:10 AM
Hi Basant,
you need to send an extra parameter in the url i.e. sysparm_sysId which will hold the sys id of the record. in the UI page html section you can get that using url parameter as
inside the jelly add this then you can use this in the query of sysId
var recordSysId = RP.getParameterValue('sysparm_sysId') + '';
for sending the extra parameter add this after the sysId of ui page
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2019 11:06 AM
Hi Ankur, thanks for your reply. I tried some method to pass sysid of the records into UI Page URL. Can you please again help me here. i think i'm near to complete this, but missing something.
Below screenshot of my mail script, that have URL of UI Page.
Thanks for your all time help.
Basant Soni
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2019 08:45 PM
Hi Basant,
just before sysparm_sysId add & i.e. it should look like
sys_id%3D<32charSysId>&sysparm_sysId=' + current.sys_id + '>'
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader