Trendsic Platform Service

<back to all web services

FormSubmissionExportRequest

Requires Authentication
The following routes are available for this service:
POST/v1/forms/submissions/export
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 FormSubmissionExportRequest
            Public Overridable Property Query As FormSubmissionSearchRequest
            Public Overridable Property SubmissionUIDs As List(Of Guid) = New List(Of Guid)
        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 FormSubmissionExportRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

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: text/csv
Content-Type: text/csv
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"]}