Reputation: 55
I have created a form for users to fill in information and submit (Save Data). I can then export the data via CSV or email.
Is it possible to get this data via API?
thanks
Upvotes: 0
Views: 421
Reputation: 533
You might need Sitecore.ExperienceForms.Data.IFormDataProvider.GetEntries(formId, start, end)
API.
The class lives in Sitecore.ExperienceForms.dll
assembly.
Implementing instance can be fetched using ServiceLocator, like in article, or in a cleaner way using Sitecore OOB DI + constructor injection.
I'd like to warn the API gets slow as the number of forms grows - you might need to report that to Sitecore Support and get a support patch.
Upvotes: 1