We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

how to get url parameter value in the server side script?

priyanka58
Tera Contributor

how to get url parameter value in the server side script?

1 ACCEPTED SOLUTION

Hi,

I shared solution for similar question yesterday and it worked for that member

sharing here again

Populate RITM to the worknotes

Regards
Ankur

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

View solution in original post

10 REPLIES 10

Sulabh Garg
ServiceNow Employee

Hello Priyanka,

Please try below code for server side

gs.getProperty("glide.servlet.uri")+gs.action.getGlideURI()

 

Please Mark ✅ Correct/helpful, if applicable, Thanks!! 

Regards

Sulabh Garg

Please Mark ✅ Correct/helpful, if applicable, Thanks!!
Regards
Sulabh Garg

Hello,

I have extract the parameter in that URL.

Anand Shukla
Mega Guru

Hello Priyanka,

You can refer the below link related to your requirement which is accepted solution.

https://community.servicenow.com/community?id=community_question&sys_id=bf928b21dbd8dbc01dcaf3231f96...

 

Hope it helps

Mark it helpful and Correct.

Thanks 

Anand Shukla

Hello Anand,

I tried using gs.action.getGlideURI().getMap().get('URL Parameter Name') this but not getting expected output.

 

Regards,

Priyanka Shukla