getch url parameter in scoped application on server side

Nikhil Moundeka
Tera Expert

Can we fetch URL parameters in scoped application using server side scripting?

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

I don't think anything exist for this as of now

what is your requirement? you can get url parameter on client side in scoped app

Regards
Ankur

 

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

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Shantharao,

Let me know if that answered your question. If so, please mark my response as correct & 👍 helpful so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.

Regards
Ankur

 

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

Himanshu2
Tera Contributor

Hi,

I was having the same problem but this problem can be solved through some extra effort and by using the code given below:

You may have to identify the exact location of parameter but it will work in your Future usage

var splittedURL = gs.action.getGlideURI().toString().split("&");

//Identify the location of your parameter and split it again to get exact value you want
	var requiredElement = splittedURL[Index of Element].split("=");

	console.log("Your Parameter   "+ requiredElement[Index of required Parameter]);