Try our conversational search powered by Generative AI!
AI OnAI Off
Hi,
You probably should use the IFormRepository and IFormDataRepository interfaces to retrieve forms.
Then you should be able to do:
var forms = _formRepository.Service.GetFormsInfo(null);
foreach (var form in forms){
...
}
Paul
I'm trying to get all the forms from the content repository and am trying this:
But I get this error on `GetItems`:
EPiServer.Core.InvalidPropertyValueException: 'Property string too long, max {1} chars'
Am I pulling this right? Seems odd to be getting this error on items that are already created.