In ACL can I get parameter from url?

very2b
Kilo Contributor

I got a request like this, if an user access from a special url, make him able to change some record.

I'm thinking do this this way:

1.add a parameter to the url.

2.Make a new ACL, in the script of it, I use "g_request.getParameter("from_mail");" to get the parameter and judge whether it came from URL.

But it seems that id doesn't work. And I add some gs.log() in the ACL, but there's no log generated.

Is this way available?

1 ACCEPTED SOLUTION

Anurag Tripathi
Mega Patron
Mega Patron

Hi Yue,



URL is one way and its definitely possible, another area that you can explore is   GlideTransaction.get(); and possibly work on the parameters of the transaction.


-Anurag

View solution in original post

2 REPLIES 2

Gurpreet07
Mega Sage

Check if you could do something with gs.action.getGlideURI().getMap().get('<parameter_name>') Otherwise go for a client script.


Macro on Catalog Item - Retrieve delivery time and display in macro -- use of gs.action.getGlideURI().getMap().get('<parameter_name>')


3 Ways to Populate Values in ServiceNow via the URL   -- to get parameter client side


Anurag Tripathi
Mega Patron
Mega Patron

Hi Yue,



URL is one way and its definitely possible, another area that you can explore is   GlideTransaction.get(); and possibly work on the parameters of the transaction.


-Anurag