Updating from records using function in workflow with deluge

Updating from records using function in workflow with deluge

Hi

I am trying to update a field in an already created form record using deluge after an 'on success'. The updated value is not static and is defined in a variable. 

How do I update a field value using deluge script in another forms records?

Thanks