I have list of map want to convert it into single map

i have this {a!map(memberId: "test ui "), a!map(holdReason: "test ui "), a!map(description: "test ui "), a!map(summary: "test ui ")} wants an out put like 


a!map(

memberId: "test ui ",

holdReason: "test ui ",

description: "test ui ",

summary: "test ui "

)

is this possible ??

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    a!localVariables(
      local!listOfMap: {
        a!map(memberId: "test ui "),
        a!map(holdReason: "test ui "),
        a!map(description: "test ui "),
        a!map(summary: "test ui ")
      },
      a!map(
        memberId: joinarray(
          a!forEach(
            local!listOfMap,
            fv!item.memberId
          ),
          ", "
        ),
        holdReason: joinarray(
          a!forEach(
            local!listOfMap,
            fv!item.holdReason
          ),
          ", "
        ),
        description: joinarray(
          a!forEach(
            local!listOfMap,
            fv!item.description
          ),
          ", "
        ),
        summary: joinarray(
          a!forEach(
            local!listOfMap,
            fv!item.summary
          ),
          ", "
        )
      )
    )
    

Reply
  • 0
    Certified Senior Developer

    a!localVariables(
      local!listOfMap: {
        a!map(memberId: "test ui "),
        a!map(holdReason: "test ui "),
        a!map(description: "test ui "),
        a!map(summary: "test ui ")
      },
      a!map(
        memberId: joinarray(
          a!forEach(
            local!listOfMap,
            fv!item.memberId
          ),
          ", "
        ),
        holdReason: joinarray(
          a!forEach(
            local!listOfMap,
            fv!item.holdReason
          ),
          ", "
        ),
        description: joinarray(
          a!forEach(
            local!listOfMap,
            fv!item.description
          ),
          ", "
        ),
        summary: joinarray(
          a!forEach(
            local!listOfMap,
            fv!item.summary
          ),
          ", "
        )
      )
    )
    

Children
No Data