Skip to main content
pranavk513898
August 17, 2023
Question

People Function Plugin groupprofilerecordtypesource

  • August 17, 2023
  • 3 replies
  • 0 views

Hello Community,

Can someone help what is going wrong here, I am trying this in Appian community edition ? Receiving this error

Expression evaluation error at function 'groupprofilerecordtypesource': The passed parameter(s) are of the wrong type. Received the type com.appiancorp.common.xml.JaxbConversionException: JAXB failure trying to convert typed value TypedValue[it=1474,v={TypedValue[it=1478,v={{{id,id,1}}}],TypedValue[it=1358,v={AND,{}}],{1,1,<null>}}] to java class com.appiancorp.common.query.Query.

groupprofilerecordtypesource(
  query:a!query(
    logicalExpression: a!queryLogicalExpression(
      operator: "AND",
      filters: {},
      ignoreFiltersWithEmptyValues: true()
    ),
    pagingInfo: a!pagingInfo(
      startIndex: 1,
      batchSize: 1,
      sort: a!sortInfo(field: "name",ascending:  true)
    )
  )
)

    3 replies

    mathieud0001
    August 21, 2023

    I tried it and doesn't work for me either. That function is no longer listed on the People Functions page so I would assume that it no longer exists.

    What are you trying to accomplish?

    pranavk513898
    August 21, 2023

    Thanks [mention:f5e81b8502fa4e77ad12697686a4fc56:e9ed411860ed4f2ba0265705b8793d05] for checking,

    Yes they have removed it from documentation. But it is listed under plugins info in admin console if you install the plugin.
    I have also checked the plugins source code and the function is available their as well. 
    After the Appian upgrade it is not working and throwing above error.

    jvisweswarai0001
    August 23, 2023

    You can try using the below:

    todatasubset(
        apply(
            getgroupprofile(_),
            getallgroups(1,0)
        ),
        a!pagingInfo(
            startIndex: 1,
            batchSize: 1,
            sort: a!sortInfo(field: "name",ascending: true)
        )
    )