Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2019 02:52 PM
If it is a particular user unless they are the president of the company I defiantly would not do it and I would hope that your management will back you up on that. However the only way I could think to do this was with the following.
1. Create a new filed of type URL. I called mine RITM URL.
2. I used a UI Policy to make it read only and an ACL of type list edit to make it so someone cannot add it to their list layout and edit it.
3. I created a Business rule on the sc_task table that is after insert no conditions since we want it on all task. The below code creates the URL for you.
(function executeRule(current, previous /*null when async*/) {
// Add your code here
var url = gs.getProperty('glide.servlet.uri') + "sc_req_item.do?sys_id=" + current.getValue('request_item') + "&sysparm_view=";
current.u_ritm_url = url;
current.update();
})(current, previous);