Updatecdt function in expression rules

Hi All ,

Can u please tell me how to use updatecdt() function in expression rule .

Load(

Local!data:{

{Id: 1, order:null},

{Id:2, order:null},

{Id:3, order:null}

},

local!updateColumn: updatearray(

Local!Data.order,

{1,2,3},

{1,2,3,4}

),

Updatecdt(

Local!Data,

Order:{local! updateColumn}

)

)

It's throwing me error when using updatecdt function. Please help me out.

Thanks,

Bhargavi

  Discussion posts and replies are publicly visible

Parents Reply
  • Actually I will be updating only some part of the array like where ever id is repeating I need to update that order values to some data.
    Local!Data:{
    {Id:1,order:null},
    {Id:2,order:null},
    {Id:1,order:null}
    }
    So I need output array should be like bellow
    {Id:1,order:1},
    {Id:2,order:null},
    {Id:1,order:2}
    So to achieve this first I am finding out the id which is duplicate then I am updating that order column
    Then apending to main array.

    Please tell me to achieve this as I am facing some issues here
Children