- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2017 06:41 PM
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?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2017 03:19 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2017 10:12 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2017 03:19 AM
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.