Skip to main content
November 24, 2021
Question

Using a!writetoDataStoreEntity, i want to update multiple rows on my table given a list of object with cdt structure.

  • November 24, 2021
  • 2 replies
  • 0 views

As i said i´m trying to update certain rows on my table, and i have a list with the key and the field I want to update. I´m trying to do this from an interface each time i click on a button.

But on a!writetoDataStoreEntity, i just can update one row each time, but i only have one button to do it all.

So, any posible solutions to this problem?, thanks!

2 replies

csteward
November 24, 2021

a!writeToDataStoreEntity() supports arrays - this should be OK logic to update multiple rows on one click.  Can you share some sample code?

November 24, 2021

oh, i didn´t know it, i didn´t try it with my array because it´s on record structure, but with a cast to the cdt  structure i think it could work, thanks!