Kentico GET Form Data

Angelina Keene asked on February 21, 2019 11:13

I am currently trying to use the Kentico API to gather the data from all forms within Kentico.

So far I've found that there are two places to view form data and they can be found at these endpoints:

/rest/cms.forms <---- Returns all form definitions (excluding field data types

/rest/bizformitem.bizform.FORM_NAME/ <---- Returns all form data (inserted by end users)

What I am trying to do is keep a record of all of the form data on a daily basis. Is there a better way to do this using the API rather than making 'x' number of calls (one per form).

EDIE: Out of 100+ forms I only need to pull 15-20 of them on a daily basis.

Recent Answers


Dražen Janjiček answered on February 21, 2019 12:05 (last edited on February 21, 2019 12:07)

Why don't you use the e-mail notifications for form submissions? Or, use the API and subscribe for the BizFormItemEvents.Insert.After event and store / send form data in any way you like.

For reference:

0 votesVote for this answer Mark as a Correct answer

Eric Dugre answered on February 24, 2019 21:56

You can create a report that lists all of the form submissions for a selected date: https://docs.kentico.com/k11/configuring-kentico/working-with-system-reports/creating-reports

Dražen's suggestion of using global event handlers could help if you're looking to store that information elsewhere or send the submission to some other application. You can also use the Integration Bus: https://docs.kentico.com/k11/integrating-3rd-party-systems/using-the-integration-bus/creating-integration-connectors/implementing-outgoing-synchronization

Though, using REST should be fine too.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.