How can i update a single record from google sheets with a switch?

Yes, that is the general idea. The script uses the record index and tests the first item. You may want to change this to test your ID number.

You may also get some ideas from here: