Using the new a!update()

Certified Senior Developer

Is is possible to update multiple fields of a CDT using the a!update()? The documentation shows that you can for a regular array, but with the CDT examples shown, it only updates one field at a time. When I test it out in an expression, it throws an error. I just want to check that I'm not missing anything here. 

e.g. 

a!update(
  data: ri!submission,
  index: {"StatusID", "SubmissionTypeID"},
  value: {1, 2}
)

error thrown: Expression evaluation error at function a!update: Invalid index: cannot index multiple indices of type List of Text String into type CRA_T_Submission

 

  Discussion posts and replies are publicly visible