Skip to main content
July 5, 2022
Question

report

  • July 5, 2022
  • 20 replies
  • 0 views

Hi all, I have created process report type as context type -Tasks assigned to group for the lists of tasks assigned to group(abc,mno,xyz). and when I tried to test through the a!queryProcessAnalytics(report:"my report") it is throwing the error that "Empty context passed in for report sg1 [id=46716]. (APNX-1-4156-000)". even though I have given the report context with list of groups.

Can Anyone suggest on this ?

    20 replies

    stefanhelzle0001
    July 5, 2022

    Can you post your code snippet?

    July 5, 2022

    this is how i configured report context with list of groups.

    harshitb6843
    July 5, 2022

    The error is not about the report. It is about the context on which the report is being built. Like the user, groups, or any other thing that you used. 


    July 5, 2022

    a!queryProcessAnalytics(
      report: cons!SG_Exercise8,
      contextUsers:  {
        cons!MAKER_GROUP,
        cons!CHECKER_GROUP,
        cons!MANAGER_GROUP
      },
    )
    even though I have used context users still getting the error.

    mikes0011
    Brainy
    July 5, 2022

    it looks like you passed in a list of groups for the parameter contextUsers - you should probably be passing that list into the parameter contextGroups, which is, of course, a different parameter.