Developer forum

Forum » CMS - Standard features » Is it Possible to export form-data as CSV automatically?

Is it Possible to export form-data as CSV automatically?

Hans Ravnsfjall
Hans Ravnsfjall
Reply

We have a costumer who wants formdata automatically exported as csv - to a secure folder.

Is it possible to do without making it totally custom, and what would be the best way to do this?

/Hans


Replies

 
Nicolai Pedersen
Reply

Hi Hans

We did not move over that feature when we implemented forms for editors because it was a returning security issue on the old forms module.

You can in you receipt template, retrieve the csv data of a form like this:

string csv = Submit.ToCsv(formId, exportHeaders, pageId);

and then store it to a file somewhere.

 
Nicolai Pedersen
Reply

Or to Excel like this:

obj ExcelBytes = Submit.ToExcel(formId, exportHeaders, pageId);
 
Hans Ravnsfjall
Hans Ravnsfjall
Reply

Ok, thank you very much Nicolai. Will try that 👍🏻

 

/Hans

 

You must be logged in to post in the forum