How does contextProcessModels property of a!queryProcessAnalytics() function wor

How does contextProcessModels property of a!queryProcessAnalytics() function work?

My a!queryProcessAnalytics() function works great below when using contextProcessModels, but when I try and switch to contextProcessIds to display just the current process, it returns nothing. So then I backed up and just tried to hard-code the process ID that I want which is 6400, and that doesn't work. I tried using the processId variable and toInteger(6400) but no luck. What gives?

How is the contextProcessIds used correctly to return just those process IDs (pp!id) and can you show an example?

Thanks much!

local!report: a!queryProcessAnalytics(
report:cons!eOff_TASKS_GRID,
/* contextProcessModels: cons!EOB_MAIN_PROCESS_MODEL, */
           contextProcessIds:{tointeger(6400)}
          
           /*
contextProcessIds:
           contextProcessModels:cons!eOFF_MAIN_PROCESS_MODEL
           contextProcessIds:6400,
           ri!processId,*/
          
/*


OriginalPostID-201423

OriginalPostID-201423

  Discussion posts and replies are publicly visible

Parents
  • The Appian Doc on a!queryProcessAnalytics() is below and specifies: contextProcessIds (Integer Array): One or more process ids to pass to the report context.

    I can not get contextProcessIds to work at all. Does anyone know how this should work and/or has an example?

    Your help is greatly appreciated!

    a!queryProcessAnalytics()
    Executes the provided process report and returns the resulting data.

    Syntax

    a!queryProcessAnalytics(report, query, contextGroups, contextProcessIds, contextProcessModels, contextUsers)

    report (Document): .arf document containing the report configuration.
    query (Query): An optional query object containing paging and extra filters, created with a!query(). If no query is provided, the default paging from the report is used.
    contextGroups (Group Array): One or more groups to pass to the report context.
    contextProcessIds (Integer Array): One or more process ids to pass to the report context.
    contextProcessModels (Process Model Array): One or more process models to pass to the report context.
    contextUsers (User Array): One or more users to pass to the report context.
    Returns

    PortalReportDataSubset
Reply
  • The Appian Doc on a!queryProcessAnalytics() is below and specifies: contextProcessIds (Integer Array): One or more process ids to pass to the report context.

    I can not get contextProcessIds to work at all. Does anyone know how this should work and/or has an example?

    Your help is greatly appreciated!

    a!queryProcessAnalytics()
    Executes the provided process report and returns the resulting data.

    Syntax

    a!queryProcessAnalytics(report, query, contextGroups, contextProcessIds, contextProcessModels, contextUsers)

    report (Document): .arf document containing the report configuration.
    query (Query): An optional query object containing paging and extra filters, created with a!query(). If no query is provided, the default paging from the report is used.
    contextGroups (Group Array): One or more groups to pass to the report context.
    contextProcessIds (Integer Array): One or more process ids to pass to the report context.
    contextProcessModels (Process Model Array): One or more process models to pass to the report context.
    contextUsers (User Array): One or more users to pass to the report context.
    Returns

    PortalReportDataSubset
Children
No Data