---
sourceDocument: Yokohama Platform Analytics
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/yokohama/now-intelligence

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama Platform Analytics

ft:clusterId :

    - par

bundleId :

    - par

workflow :

    - Platform


---

# getCurrentAggregateID()

# getCurrentAggregateID() {#ariaid-title1}

Release version: Yokohama  
Updated January 30, 2025  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read  
Returns the time series aggregate identifier (sys_id) from the indicator of the current
formula. The sys_id is returned dynamically, as the selection in the Analytics Hub changes.
{#PAFU-getCurrentAggregateID__table_vxf_2ml_ffb__entry__3}

| Name | Type | Description |
|-|-|-|
| None |   |   |
[Table 1. Parameters]

{#PAFU-getCurrentAggregateID__table_vxf_2ml_ffb} {#PAFU-getCurrentAggregateID__table_wxf_2ml_ffb__entry__2}

| Type | Description |
|-|-|
| String | Dynamic time series aggregate ID from the indicator of the current formula as it changes with your selection in the Analytics Hub . If there is no time series aggregate ID, the method does not return a value. |
[Table 2. Returns]

{#PAFU-getCurrentAggregateID__table_wxf_2ml_ffb}  
Example:

    var res = [[Number of open incidents]];
    if(pa.getCurrentAggregateID() == '89ea4c11d7001100ba986f14ce6103dc')
      {
        res = 0;
      }
    res;

**Related concepts**   

* [PAFormulaUtils API](https://servicenow-prod.fluidtopics.net/pPYw9lecyfu40Rqp96ur~w "The PAFormulaUtils API enables you to obtain a value that was calculated in the Analytics Hub and use that value as input for a formula.")  
**Related reference**   

* [getChange(String indicator, Object fromDate, Object toDate)](https://servicenow-prod.fluidtopics.net/q7wsQe2FHxsbdRtS8~5ijw "Returns the change in the score of an indicator between two specified dates.")
* [getChangePercentage(String indicator, Object fromDate, Object toDate)](https://servicenow-prod.fluidtopics.net/l~4OE~vxC5X1zCQX8spAXA "Returns the percentage of change in the score of an indicator between two specified dates.")
* [getCurrentBreakdownID()](https://servicenow-prod.fluidtopics.net/aSn2WkZCPSP8ucSOz2kqSg "Returns the level 1 breakdown identifier (sys_id) from the indicator of the current formula. The sys_id is returned dynamically, as the selection in the Analytics Hub changes.")
* [getCurrentBreakdownLevel2ID()](https://servicenow-prod.fluidtopics.net/W25KA3fQvqzFT7t0h2XoTw "Returns the level 2 breakdown identifier (sys_id) from the indicator of the current formula. The sys_id is returned dynamically, as the selection in the Analytics Hub changes.")
* [getCurrentElementID()](https://servicenow-prod.fluidtopics.net/NWUYa3IfuY1su5bG_ley_Q "Returns the level 1 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.")
* [getCurrentElementLevel2ID()](https://servicenow-prod.fluidtopics.net/3jiVweWSlthxjvGYUDN1zQ "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.")
* [getGap(String indicator, Object onDate)](https://servicenow-prod.fluidtopics.net/2n0RNDzJo0ceqFKwV_jLlQ "Returns the global target gap for the specified indicator on the specified date.")
* [getGlobalTarget(String indicator, Object onDate)](https://servicenow-prod.fluidtopics.net/1KLd2528pM6eihxtWcFa4w "Returns the global target associated with the specified indicator for the specified date.")
* [getPersonalTarget(String indicator, Object onDate)](https://servicenow-prod.fluidtopics.net/09uGzSNdMFXFf8cUzD2hZg "Returns the personal target associated with the specified indicator for the specified date.")
* [getScore(String indicator, Object onDate)](https://servicenow-prod.fluidtopics.net/t0Lcay1I_moOoEksQxtAHg "Returns the score of the specified indicator for the specified date.")

