What's the best way to update a dataset and write it back to template parameters?

The trick is to create a new list of values in one operation, then use our system functions to slice off the old column and drop in a new one. See this thread for a possible approach: