When using the API to create or update rows, what format should I be using to pass values for a lookup table column? I’ve tried passing the values back as a comma-separated list, and it results in the column appearing to be populated with the correct values, except that each cell has the little red error triangle, with the message that it’s not a valid row reference, even though that value matches the display column. I’ve also tried passing the row IDs, and this didn’t work either. The format I’m using is:
{
'column': '<Lookup Column Name>',
'value': <lookup display value A>,<lookup display value B>
},
Thanks for this, I’ve mostly got it working. It turns out the problem seems to have been that my lookup display column consists of numbers, and I think the API call that was populating this column was creating them as numbers (even though it’s a text column), and the lookup was attempting to treat the numbers as text strings, and so the lookup was failing because it was trying to match text strings to numbers, even though the contents of both were the same. I put punctuation around both the numbers for both writing them and looking them up, and that seems to have solved it.
Realized I never updated this thread – we made changes to our API a few weeks ago to fix these edge cases around working with tables whose display columns have numbers in them.