Skip to main content
pranavk513898
Known Participant
Aug 17, 2023 4:12 PM UTC
Question

People Function Plugin groupprofilerecordtypesource

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
    Genius
    Aug 21, 2023 12:27 PM UTC

    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
    Known Participant
    Aug 21, 2023 2:52 PM UTC

    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
    Participating Frequently
    Aug 23, 2023 12:57 PM UTC

    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)
        )
    )