Scoped GlideSystem - getCurrentApplicationId()

Gets the ID of the current application as set using the Application Picker.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
String The current application's sys_id, or global in none is set.
var currentId = gs.getCurrentApplicationId();
gs.info(currentId);

Output: 04936cb16f30b1005be8883e6b3ee4e0