How to take specific field value from grid?

Certified Associate Developer

Hello All,

I have a requirement to fetch specific column data from grid and pass it to startProcess() function. Below is the scenario

Suppose my grid has below data

Field1                  Field2           Field3

Task1                  abc               pqr

Task2                  lmn               stu

Task3                  xyz                mnp

 

This data is coming from report and I set the identifier as TaskID. Now suppose if i select row two then the TaskID will be passed to the process model(Its basically to reassign the task) which is absolutely fine but I have a requirement to send an email notification to the user to whom the task is assigned and inside that email notification, I need to include the "Field2" value which is nothing but a task name. Can someone tell me how can I send the respected TaskName with TaskId to the process model? i.e if I select row 2 then I need to send TaskID and TaskName which is "lmn"

  Discussion posts and replies are publicly visible

Parents
  • Hi Vivek
    Attaching sample logic. Please go through it.
    with(
    local!items: {
    {
    id: 123,
    name: "Appian"
    },
    {
    id: 234,
    name: "MySql"
    },
    {
    id: 345,
    name: "Java"
    }
    },
    local!selectedItem: 123,
    local!itemPosition: wherecontains(
    tointeger(
    local!selectedItem
    ),
    tointeger(
    index(
    local!items,
    "id",
    null
    )
    )
    ),
    if(
    rule!APN_isEmpty(
    local!itemPosition
    ),
    null,
    index(
    local!items,
    local!itemPosition,
    null
    )
    )
    )
Reply
  • Hi Vivek
    Attaching sample logic. Please go through it.
    with(
    local!items: {
    {
    id: 123,
    name: "Appian"
    },
    {
    id: 234,
    name: "MySql"
    },
    {
    id: 345,
    name: "Java"
    }
    },
    local!selectedItem: 123,
    local!itemPosition: wherecontains(
    tointeger(
    local!selectedItem
    ),
    tointeger(
    index(
    local!items,
    "id",
    null
    )
    )
    ),
    if(
    rule!APN_isEmpty(
    local!itemPosition
    ),
    null,
    index(
    local!items,
    local!itemPosition,
    null
    )
    )
    )
Children
No Data