| POST | /v1/forms/submissions/export |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class FormSubmissionExportRequest
{
public FormSubmissionSearchRequest Query = null;
public ArrayList<UUID> SubmissionUIDs = new ArrayList<UUID>();
public FormSubmissionSearchRequest getQuery() { return Query; }
public FormSubmissionExportRequest setQuery(FormSubmissionSearchRequest value) { this.Query = value; return this; }
public ArrayList<UUID> getSubmissionUIDs() { return SubmissionUIDs; }
public FormSubmissionExportRequest setSubmissionUIDs(ArrayList<UUID> value) { this.SubmissionUIDs = value; return this; }
}
public static class FormSubmissionSearchRequest
{
public UUID FormUID = null;
public String Mode = null;
public ArrayList<UUID> Forms = new ArrayList<UUID>();
public ArrayList<String> Stages = new ArrayList<String>();
public ArrayList<Integer> Assignees = new ArrayList<Integer>();
public ArrayList<String> Branches = new ArrayList<String>();
public ArrayList<String> Tags = new ArrayList<String>();
public String Search = null;
public String SortKey = null;
public Integer SortDir = null;
public Integer Skip = null;
public Integer Take = null;
public ArrayList<FormAnswerCond> Conds = new ArrayList<FormAnswerCond>();
public ArrayList<String> Flags = new ArrayList<String>();
public UUID getFormUID() { return FormUID; }
public FormSubmissionSearchRequest setFormUID(UUID value) { this.FormUID = value; return this; }
public String getMode() { return Mode; }
public FormSubmissionSearchRequest setMode(String value) { this.Mode = value; return this; }
public ArrayList<UUID> getForms() { return Forms; }
public FormSubmissionSearchRequest setForms(ArrayList<UUID> value) { this.Forms = value; return this; }
public ArrayList<String> getStages() { return Stages; }
public FormSubmissionSearchRequest setStages(ArrayList<String> value) { this.Stages = value; return this; }
public ArrayList<Integer> getAssignees() { return Assignees; }
public FormSubmissionSearchRequest setAssignees(ArrayList<Integer> value) { this.Assignees = value; return this; }
public ArrayList<String> getBranches() { return Branches; }
public FormSubmissionSearchRequest setBranches(ArrayList<String> value) { this.Branches = value; return this; }
public ArrayList<String> getTags() { return Tags; }
public FormSubmissionSearchRequest setTags(ArrayList<String> value) { this.Tags = value; return this; }
public String getSearch() { return Search; }
public FormSubmissionSearchRequest setSearch(String value) { this.Search = value; return this; }
public String getSortKey() { return SortKey; }
public FormSubmissionSearchRequest setSortKey(String value) { this.SortKey = value; return this; }
public Integer getSortDir() { return SortDir; }
public FormSubmissionSearchRequest setSortDir(Integer value) { this.SortDir = value; return this; }
public Integer getSkip() { return Skip; }
public FormSubmissionSearchRequest setSkip(Integer value) { this.Skip = value; return this; }
public Integer getTake() { return Take; }
public FormSubmissionSearchRequest setTake(Integer value) { this.Take = value; return this; }
public ArrayList<FormAnswerCond> getConds() { return Conds; }
public FormSubmissionSearchRequest setConds(ArrayList<FormAnswerCond> value) { this.Conds = value; return this; }
public ArrayList<String> getFlags() { return Flags; }
public FormSubmissionSearchRequest setFlags(ArrayList<String> value) { this.Flags = value; return this; }
}
public static class FormAnswerCond
{
public String F = null;
public String Op = null;
public String V = null;
public String getF() { return F; }
public FormAnswerCond setF(String value) { this.F = value; return this; }
public String getOp() { return Op; }
public FormAnswerCond setOp(String value) { this.Op = value; return this; }
public String getV() { return V; }
public FormAnswerCond setV(String value) { this.V = value; return this; }
}
}
Java FormSubmissionExportRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/forms/submissions/export HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<FormSubmissionExportRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Query>
<Assignees xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>0</d3p1:int>
</Assignees>
<Branches xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>String</d3p1:string>
</Branches>
<Conds>
<FormAnswerCond>
<F>String</F>
<Op>String</Op>
<V>String</V>
</FormAnswerCond>
</Conds>
<Flags xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>String</d3p1:string>
</Flags>
<FormUID>00000000-0000-0000-0000-000000000000</FormUID>
<Forms xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:guid>00000000-0000-0000-0000-000000000000</d3p1:guid>
</Forms>
<Mode>String</Mode>
<Search>String</Search>
<Skip>0</Skip>
<SortDir>0</SortDir>
<SortKey>String</SortKey>
<Stages xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>String</d3p1:string>
</Stages>
<Tags xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>String</d3p1:string>
</Tags>
<Take>0</Take>
</Query>
<SubmissionUIDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>00000000-0000-0000-0000-000000000000</d2p1:guid>
</SubmissionUIDs>
</FormSubmissionExportRequest>