Skip to main content
Solved

Update multiple fields at the same time, in the same updateRecordAsync

  • October 28, 2022
  • 3 replies
  • 43 views

Forum|alt.badge.img+5

Hey Community !

I’ve been searching here and there, and i don’t see the way to update multiple fields at the same time, in the same updateRecordAsync. Is it even possible ? Because doing one field update at a time is very slow.
Any help or workaround appreciated :cowboy_hat_face:

Best answer by kuovonne

Welcome to the Airtable community!

Yes, it is possible.

What do you have so far? What error messages are you getting? You likely have a syntax error, a spelling error, or are sending the data in the wrong format.

Can you post the relevant snippets of your code (use the </> icon to format the code)? Can you post screen shots of your fields including column headings?

await table.updateRecordAsync(record, {
  "Field 1": "value",
  "Field 2": "value",
})

3 replies

Forum|alt.badge.img+5
  • Author
  • Inspiring
  • 11 replies
  • October 31, 2022

I can understand that the way to do so is in front of my eyes and i am unable to see it, but i am new to AirTable script and the doc is not very understandable. Moreover, examples found in the community do not address this topic…


kuovonne
Forum|alt.badge.img+29
  • Brainy
  • 6009 replies
  • Answer
  • October 31, 2022

Welcome to the Airtable community!

Yes, it is possible.

What do you have so far? What error messages are you getting? You likely have a syntax error, a spelling error, or are sending the data in the wrong format.

Can you post the relevant snippets of your code (use the </> icon to format the code)? Can you post screen shots of your fields including column headings?

await table.updateRecordAsync(record, {
  "Field 1": "value",
  "Field 2": "value",
})

Forum|alt.badge.img+5
  • Author
  • Inspiring
  • 11 replies
  • November 1, 2022

Welcome to the Airtable community!

Yes, it is possible.

What do you have so far? What error messages are you getting? You likely have a syntax error, a spelling error, or are sending the data in the wrong format.

Can you post the relevant snippets of your code (use the </> icon to format the code)? Can you post screen shots of your fields including column headings?

await table.updateRecordAsync(record, {
  "Field 1": "value",
  "Field 2": "value",
})

Thank you Kuovonne, in Airtable Scripting , the reference was unclear to me, as well as the exact syntax to code the array to pass to the function.