How to update a column value of multiple records in a table?

Scenario:

Update Column "X" in table "A" for an array of record identifiers of records in table "A". Value will be same value for all the list of record identifiers in their column "X".

Is this possible to achieve? If yes, how to do it, please share recipe or sample code.

  Discussion posts and replies are publicly visible

Parents Reply
  • I have tested with UpdateCDT. The column X we need to update is a list of numbers. Which means we need to append values than overwrite. The UpdateCDT is overwriting values but not appending. Is there a way to append? Also, as shown in below expression i tested, the value i need to save against each column is same, but i have to repeat it in the SourceIds array for the count of records i am trying to update. Is there a better way of doing it?

    updatecdt(rule!GetTechnologyByIdMultiple(ri!ids),{Id: ri!ids, SourceIds: {2,2}})
Children