...
Code Block |
---|
FormsService formsService = ....; ApplicationEntry entry = ....; string fileName = ....; Stream contentStream = formsService.QueryContent(entry.Content); //if the Application needs to be written to a file: using (FileStream fileStream = File.Create(fileName)) { contentStream.CopyTo(fileStream); } |
After I found a ApplicationEntry for the first time can I get the entry directly?
If you have an entry id you can retrieve the entry directly.
...
Code Block |
---|
FormEntry form = ...; ControlEntry controlA = form.FindControlEntry("A"); controlA.Value = "TestA"; ControlEntry controlB = form.FindControlEntry("B"); controlB.Value = "TestB"; |
Warning |
---|
Objects, of any kind, that are part of a Flow cannot access the list of controls for the Flow. Attempted access of FormTypeEntry.ControlTypeFeed, FormTypeEntry.ControlTypeFeedLink, FormEntry. ControlFeed, or FormEntry.ControlFeedLink will result in a NotSupportedException. |
How do I submit a form?
First you have to get a hold of the form instance (see 'How do I create a form instance?). When you are finished editing your form, you may submit it as follows:
...