Triggering an 'On input' script for existing records

Triggering an 'On input' script for existing records

Hi,

I have a form with some simple automation whereby editing one field dictates the input of another. This was achieved using an 'On input' deluge workflow.

However, I only built this flow after having created many records. How can I trigger this script for the ALL of the existing records. I believe it can be achieved with a function but I'm not sure where to start.

Any help would be much appreciated.