简体   繁体   中英

Sitecore get data

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM