Skip to content

Commit f722831

Browse files
authored
Add documentation for GetClickableURL function
Provides examples of how to use the GetClickableURL function in different UI contexts.
1 parent 075394e commit f722831

File tree

1 file changed

+15
-0
lines changed
  • Server-Side Components/Script Includes/GetClickableURL

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Function that generates clickable HTML links to records in different UI contexts (Native UI, Workspace or Portal)
2+
3+
4+
5+
6+
Sample background Script:
7+
8+
var record_sysid = '';// add the record sys_id here.
9+
gs.info(new global.GetRecordDetails().getClickableURL('incident', record_sysid, 'INC- Workspace', 'workspace', 'cwf/agent'));
10+
11+
gs.info(new global.GetRecordDetails().getClickableURL('incident', record_sysid, 'INC- Portal', 'portal', 'sp'));
12+
13+
gs.info(new global.GetRecordDetails().getClickableURL('incident', record_sysid, 'INC - NativeUI', 'native'));
14+
15+
gs.info(new global.GetRecordDetails().getClickableURL('', record_sysid, 'INC - NativeUI', 'native'));

0 commit comments

Comments
 (0)