Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

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
Mega Sage

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