Process a field in a Datasubset

I have a datasubset that I am generating for a download link and I would like to process a couple of the fields in the data to make the download more usable for users. Is there a way to apply a function (such as a function to take a username and render a "Firstname Lastname") to a field in a datasubset while preserving the structure of the datasubset?

OriginalPostID-267809

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer
    @kylej
    One you get the data from database, create an expression rule that returns dictionary and convert it back to datasubset.
    For example , we are getting firstName and lastLast,in expression rule return as below
    {
    label:"fullName",
    value:ri!data.firstName&" "&ri!data.lastName
    }

    and convert the output of expression rule to datasubset by using todatasubset().

    Hope this will help!!!
Reply
  • 0
    Certified Lead Developer
    @kylej
    One you get the data from database, create an expression rule that returns dictionary and convert it back to datasubset.
    For example , we are getting firstName and lastLast,in expression rule return as below
    {
    label:"fullName",
    value:ri!data.firstName&" "&ri!data.lastName
    }

    and convert the output of expression rule to datasubset by using todatasubset().

    Hope this will help!!!
Children
No Data