Check value of linked item: Automation + Script

Hello everybody!

Sorry to bother again, javascript is too much for me =/

I’m trying to accomplish the following:

  • When a record is created.
  • Check a value of a linked field. (Marked red in the picture)
  • If it’s value is “Vinos” then launch a webhook.

How would you do it? I can get the record id, launch the webhook, but I’m not able of checking the value of the field.

Thank you so much!!