Hey I’m trying to update a few fields on a record. Same process each time. So I have a for loop that goes through an array with a combo of the field I want to update and the values to put in.
A basic version looks like this:
Array = [{“Field”:“field 1”, “value 1”: “something”}, {“Field”:“field 2”, “value 1”: “something”}]
For item in array do:
Some processing
Table.updateRecordAsync(RecordID, {"${variable string with field name}"
: another variable value})
However I can’t get the field
"${variable string with field name}"
to take a variable no matter how I set it up. I have tried every combo of ’ " { [ around the variable. And tried constructing the variable separate as a full string to put in but to no avail.
Is it possible to use a variable in the field?
How could I do this?
Many thanks.