| POST | /v1/forms/submissions/export/preview |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal
Namespace Global
Namespace CRM.AgencyPlatform.API.Internal
Public Partial Class FormAnswerCond
Public Overridable Property F As String
Public Overridable Property Op As String
Public Overridable Property V As String
End Class
Public Partial Class FormSubmissionExportPreviewRequest
Public Overridable Property Query As FormSubmissionSearchRequest
Public Overridable Property SubmissionUIDs As List(Of Guid) = New List(Of Guid)
End Class
Public Partial Class FormSubmissionExportPreviewResponse
Public Overridable Property Rows As Integer
Public Overridable Property Cap As Integer
Public Overridable Property FormName As String
Public Overridable Property CanExport As Boolean
Public Overridable Property Message As String
Public Overridable Property ResponseStatus As ResponseStatus
End Class
Public Partial Class FormSubmissionSearchRequest
Public Overridable Property FormUID As Guid?
Public Overridable Property Mode As String
Public Overridable Property Forms As List(Of Guid) = New List(Of Guid)
Public Overridable Property Stages As List(Of String) = New List(Of String)
Public Overridable Property Assignees As List(Of Integer) = New List(Of Integer)
Public Overridable Property Branches As List(Of String) = New List(Of String)
Public Overridable Property Tags As List(Of String) = New List(Of String)
Public Overridable Property Search As String
Public Overridable Property SortKey As String
Public Overridable Property SortDir As Integer
Public Overridable Property Skip As Integer
Public Overridable Property Take As Integer
Public Overridable Property Conds As List(Of FormAnswerCond) = New List(Of FormAnswerCond)
Public Overridable Property Flags As List(Of String) = New List(Of String)
End Class
End Namespace
End Namespace
VB.NET FormSubmissionExportPreviewRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/forms/submissions/export/preview HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"Query":{"FormUID":"00000000000000000000000000000000","Mode":"String","Forms":["00000000000000000000000000000000"],"Stages":["String"],"Assignees":[0],"Branches":["String"],"Tags":["String"],"Search":"String","SortKey":"String","SortDir":0,"Skip":0,"Take":0,"Conds":[{"F":"String","Op":"String","V":"String"}],"Flags":["String"]},"SubmissionUIDs":["00000000000000000000000000000000"]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"Rows":0,"Cap":0,"FormName":"String","CanExport":false,"Message":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}