[英]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.
然后我可以通过 CSV 或电子邮件导出数据。
Is it possible to get this data via API?是否可以通过 API 获取这些数据?
thanks谢谢
You might need Sitecore.ExperienceForms.Data.IFormDataProvider.GetEntries(formId, start, end)
API.您可能需要
Sitecore.ExperienceForms.Data.IFormDataProvider.GetEntries(formId, start, end)
API。
The class lives in Sitecore.ExperienceForms.dll
assembly.该类位于
Sitecore.ExperienceForms.dll
程序集中。
Implementing instance can be fetched using ServiceLocator, like in article , or in a cleaner way using Sitecore OOB DI + constructor injection .实现实例可以使用ServiceLocator获取,就像在文章中一样,或者使用Sitecore OOB DI + 构造函数注入以更简洁的方式获取。
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.我想警告 API 随着表单数量的增加而变慢 - 您可能需要向 Sitecore 支持报告并获取支持补丁。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.