Skip to main content
December 9, 2021
Solved

how to transfer group type to text meanwhile get all information of words

  • December 9, 2021
  • 7 replies
  • 0 views

if I toString(1-groupname) just return group:1,

but if i want to transfer (1-groupname) return "1-groupName" both then how to do it?

    Best answer by andrewh0007

    If I understand your correctly this may be what you are after:

    concat(
      group(togroup(1),"id"),
      " - ",
      group(togroup(1),"groupName")
    )

    Not 100% sure what you're trying to achieve though. Could be totally misunderstanding.

    7 replies

    andrewh0007
    December 9, 2021

    Use the group() function: https://docs.appian.com/suite/help/21.4/fnc_people_group.html

    So you'd want group(1-groupname, "groupName") but there are other properties that can be returned (check the linked documentation)

    December 9, 2021

    i mean i want switch all the group type to text, toString just get partial

    andrewh0007
    December 9, 2021

    If I understand your correctly this may be what you are after:

    concat(
      group(togroup(1),"id"),
      " - ",
      group(togroup(1),"groupName")
    )

    Not 100% sure what you're trying to achieve though. Could be totally misunderstanding.