getCurrentElementLevel2ID()

  • Freigeben Version: Australia
  • Aktualisiert 12. März 2026
  • 1 Minute Lesedauer
  • Returns the level 2 breakdown element identifier (sys_id) from the indicator of the current formula. The sys_id is returned dynamically, as the selection in the Analytics Hub changes.

    Use this method when altering a formula for a specific element. For example, use the method when running a query to count different attributes, such as excluding scores for changes from groups that do not change.

    Tabelle : 1. Parameters
    Name Type Description
    None
    Tabelle : 2. Returns
    Type Description
    String

    Dynamic level 2 breakdown element ID from the indicator of the current formula as it changes with your selection in the Analytics Hub. If there is no level 2 breakdown element ID, the method does not return a value.

    Example:

    var res = [[Number of open incidents]];
    if(pa.getCurrentBreakdownLevel2ID() == 'baec0752bf130100b96dac808c0739ed' && pa.getCurrentElementLevel2ID() == '8a4dde73c6112278017a6a4baf547aa7')
      {
      res = 0;
      }
    res;