Form object instance: function for pulling data?

Form object instance: function for pulling data?

For a form-object variable defined for a custom-action ,  say variable 
formObjectInstance1        , what system function can I use to pull all data in a form and put the data in an email message?
somethine like    input.formdata; 
for  formObjectInstance1          it would be something like     formObjectInstance1.writeAllFieldValues()  ?

I have been trying to find such a function/method but could not... can you help ? thanks.