| POST | /v1/forms/submissions/search |
|---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class FormSubmissionSearchRequest
{
open var FormUID:UUID? = null
open var Mode:String? = null
open var Forms:ArrayList<UUID> = ArrayList<UUID>()
open var Stages:ArrayList<String> = ArrayList<String>()
open var Assignees:ArrayList<Int> = ArrayList<Int>()
open var Branches:ArrayList<String> = ArrayList<String>()
open var Tags:ArrayList<String> = ArrayList<String>()
open var Search:String? = null
open var SortKey:String? = null
open var SortDir:Int? = null
open var Skip:Int? = null
open var Take:Int? = null
open var Conds:ArrayList<FormAnswerCond> = ArrayList<FormAnswerCond>()
open var Flags:ArrayList<String> = ArrayList<String>()
}
open class FormAnswerCond
{
open var F:String? = null
open var Op:String? = null
open var V:String? = null
}
open class FormSubmissionSearchResponse
{
open var Rows:ArrayList<FormInboxRow> = ArrayList<FormInboxRow>()
open var Matching:Int? = null
open var ScopeTotal:Int? = null
open var StageMatching:ArrayList<FormInboxCount> = ArrayList<FormInboxCount>()
open var Counts:FormInboxCounts? = null
open var Stages:ArrayList<FormStageInfo> = ArrayList<FormStageInfo>()
open var Capped:Boolean? = null
open var FilterFields:ArrayList<FormFilterField> = ArrayList<FormFilterField>()
open var TagOptions:ArrayList<String> = ArrayList<String>()
open var ResponseStatus:ResponseStatus? = null
}
open class FormInboxRow
{
open var SubmissionUID:UUID? = null
open var FormUID:UUID? = null
open var FormName:String? = null
open var VersionNo:Int? = null
open var Number:String? = null
open var ApplicantName:String? = null
open var Stage:String? = null
open var StageLabel:String? = null
open var StageTone:String? = null
open var AssigneeAgentId:Int? = null
open var AssigneeName:String? = null
open var BranchName:String? = null
open var SubmittedAt:Date? = null
open var SubmittedText:String? = null
open var Tags:ArrayList<String> = ArrayList<String>()
open var DocsOk:Int? = null
open var DocsNeed:Int? = null
open var IsTest:Boolean? = null
open var VersionText:String? = null
}
open class FormInboxCount
{
open var V:String? = null
open var L:String? = null
open var N:Int? = null
}
open class FormInboxCounts
{
open var Stages:ArrayList<FormInboxCount> = ArrayList<FormInboxCount>()
open var Assignees:ArrayList<FormInboxCount> = ArrayList<FormInboxCount>()
open var Branches:ArrayList<FormInboxCount> = ArrayList<FormInboxCount>()
open var Tags:ArrayList<FormInboxCount> = ArrayList<FormInboxCount>()
open var Forms:ArrayList<FormInboxCount> = ArrayList<FormInboxCount>()
open var Flags:ArrayList<FormInboxCount> = ArrayList<FormInboxCount>()
}
open class FormStageInfo
{
open var Id:String? = null
open var Label:String? = null
open var Tone:String? = null
open var Kind:String? = null
}
open class FormFilterField
{
open var K:String? = null
open var L:String? = null
open var T:String? = null
open var Opts:ArrayList<FormFilterOpt> = ArrayList<FormFilterOpt>()
}
open class FormFilterOpt
{
open var Id:String? = null
open var L:String? = null
}
Kotlin FormSubmissionSearchRequest 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/search HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<FormSubmissionSearchRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Assignees xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:int>0</d2p1:int>
</Assignees>
<Branches xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</Branches>
<Conds>
<FormAnswerCond>
<F>String</F>
<Op>String</Op>
<V>String</V>
</FormAnswerCond>
</Conds>
<Flags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</Flags>
<FormUID>00000000-0000-0000-0000-000000000000</FormUID>
<Forms xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:guid>00000000-0000-0000-0000-000000000000</d2p1:guid>
</Forms>
<Mode>String</Mode>
<Search>String</Search>
<Skip>0</Skip>
<SortDir>0</SortDir>
<SortKey>String</SortKey>
<Stages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</Stages>
<Tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</Tags>
<Take>0</Take>
</FormSubmissionSearchRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<FormSubmissionSearchResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Capped>false</Capped>
<Counts>
<Assignees>
<FormInboxCount>
<L>String</L>
<N>0</N>
<V>String</V>
</FormInboxCount>
</Assignees>
<Branches>
<FormInboxCount>
<L>String</L>
<N>0</N>
<V>String</V>
</FormInboxCount>
</Branches>
<Flags>
<FormInboxCount>
<L>String</L>
<N>0</N>
<V>String</V>
</FormInboxCount>
</Flags>
<Forms>
<FormInboxCount>
<L>String</L>
<N>0</N>
<V>String</V>
</FormInboxCount>
</Forms>
<Stages>
<FormInboxCount>
<L>String</L>
<N>0</N>
<V>String</V>
</FormInboxCount>
</Stages>
<Tags>
<FormInboxCount>
<L>String</L>
<N>0</N>
<V>String</V>
</FormInboxCount>
</Tags>
</Counts>
<FilterFields>
<FormFilterField>
<K>String</K>
<L>String</L>
<Opts>
<FormFilterOpt>
<Id>String</Id>
<L>String</L>
</FormFilterOpt>
</Opts>
<T>String</T>
</FormFilterField>
</FilterFields>
<Matching>0</Matching>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<Rows>
<FormInboxRow>
<ApplicantName>String</ApplicantName>
<AssigneeAgentId>0</AssigneeAgentId>
<AssigneeName>String</AssigneeName>
<BranchName>String</BranchName>
<DocsNeed>0</DocsNeed>
<DocsOk>0</DocsOk>
<FormName>String</FormName>
<FormUID>00000000-0000-0000-0000-000000000000</FormUID>
<IsTest>false</IsTest>
<Number>String</Number>
<Stage>String</Stage>
<StageLabel>String</StageLabel>
<StageTone>String</StageTone>
<SubmissionUID>00000000-0000-0000-0000-000000000000</SubmissionUID>
<SubmittedAt>0001-01-01T00:00:00</SubmittedAt>
<SubmittedText>String</SubmittedText>
<Tags xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>String</d4p1:string>
</Tags>
<VersionNo>0</VersionNo>
<VersionText>String</VersionText>
</FormInboxRow>
</Rows>
<ScopeTotal>0</ScopeTotal>
<StageMatching>
<FormInboxCount>
<L>String</L>
<N>0</N>
<V>String</V>
</FormInboxCount>
</StageMatching>
<Stages>
<FormStageInfo>
<Id>String</Id>
<Kind>String</Kind>
<Label>String</Label>
<Tone>String</Tone>
</FormStageInfo>
</Stages>
<TagOptions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</TagOptions>
</FormSubmissionSearchResponse>