I'm looking for what is hopefully a simple pattern -

How can I perform an lookup/update (let's say, for something like an Address), and then conditionally invoke an additional process (like a geocoding step) only if the row was freshly inserted(not just returned from lookup)?

Thanks