Ticket details to query into table from UI Page

basantsoni
Kilo Guru

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

1 ACCEPTED SOLUTION

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

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

View solution in original post

16 REPLIES 16

Hi Basantsoni,

I believe you can pass the record syd_id. Can you share the script so that I can help?

Regards

Ankur

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

basantsoni
Kilo Guru

Hi Ankur, 

I have added all details into attached doc file. please help into this, i really got stuck and not finding any solution.

Appreciate your help on this issue.

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

 

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

basantsoni
Kilo Guru

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.find_real_file.png

Thanks for your all time help.

Basant Soni 

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

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