User Tools

Site Tools


misc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
misc [01/22/2025 08:45] johnsonjohnmisc [01/22/2025 08:49] (current) johnsonjohn
Line 1: Line 1:
 ======Miscellaneous====== ======Miscellaneous======
 +----
 +
 +=====Multiple GETs=====
 +<code>
 +//Get Current Role
 +gs.hasRole('itil');
 +
 +//Get Current User
 +javascript:gs.getUserID();
 +gs.getUser().getUserByID(current.approver).hasRole('itil');
 +
 +//Get Instance Name
 +gs.getProperty("instance_name");
 +
 +//Get Instance URL
 +gs.getProperty('glide.servlet.uri')
 +
 +
 +</code>
 ---- ----
  
misc.1737564326.txt.gz · Last modified: 01/22/2025 08:45 by johnsonjohn

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki