Can the code in my "Successful form submission" WF be invoked from a function?

Can the code in my "Successful form submission" WF be invoked from a function?

Can "Successful form submission" be invoked from a function?

Data gets into a form manually and programatically.

My code in "successful form submission" is good and I want to reuse it/call it, from another function which does Insert Into

How to achieve this?