PAFormulaUtils API

  • Rversion finale: Australia
  • Mis à jour 12 mars 2026
  • 1 minute de lecture
  • 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.

    To use the PAFormulaUtils API, you must satisfy these requirements:
    • Performance Analytics must be enabled.
    • The user who creates the formula indicator that uses this API must have the pa_power_user, pa_admin, or admin roles.

    A dollar sign, $, precedes indicator names in PAFormulaUtils parameters, like the Number of open incidents indicator in this example: pa.getGap($[[Number of open incidents]], score_end);. This dollar sign means that the Analytics Hub calculated values for the indicator are returned instead of the indicator score.

    Date parameters in PAFormulaUtils methods take one of the following forms:
    • An absolute date in YYYY-MM-DD format, such as 2018-12-21.
    • The variable score_start or score_end. These variables represent the first and last second of the collection period being calculated for the referenced indicator. The times are calculated from the difference between the time zone of the user and the database server time zone, which is GMT. For more information, see Changes to score_start/end because of different user time zones.
    • A date parameter that you have coded yourself using the GlideDate or the GlideDateTime API.
    Avertissement :
    The PAFormulaUtils API can be used only in formula indicators, not in scripts.

    The PAFormulaUtils API contains the following methods: