I'm in over my head. I got ChatGPT to create this script for me, so ... I don't know if I've activated SkyNet or not.
So I'm creating an automation, and I noticed that sometimes there are duplicate records, because the Webhook comes in and runs when a record is created and updated (so it creates a record for both). I'm trying to create something to minimize this.
Screenshot of automation: https://tinyurl.com/2q5a57je
When I try to update the record, I can't choose the record that the script outputs.


