Trendsic Platform Service

<back to all web services

FormReportRequest

Requires Authentication
The following routes are available for this service:
GET/v1/forms/{FormUID}/reports
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 FormReportBar
            Public Overridable Property Id As String
            Public Overridable Property Label As String
            Public Overridable Property N As Integer
            Public Overridable Property Value As Double
            Public Overridable Property Text As String
            Public Overridable Property Tone As String
        End Class

        Public Partial Class FormReportRequest
            Public Overridable Property FormUID As Guid
            Public Overridable Property Field As String
        End Class

        Public Partial Class FormReportResponse
            Public Overridable Property Submissions As Integer
            Public Overridable Property Decided As Integer
            Public Overridable Property Approved As Integer
            Public Overridable Property RateText As String
            Public Overridable Property DecisionText As String
            Public Overridable Property Drafts As Integer
            Public Overridable Property Sla As Integer
            Public Overridable Property DraftDays As Integer
            Public Overridable Property IsRecord As Boolean
            Public Overridable Property Weeks As List(Of FormReportBar) = New List(Of FormReportBar)
            Public Overridable Property Stages As List(Of FormReportBar) = New List(Of FormReportBar)
            Public Overridable Property Pages As List(Of FormReportBar) = New List(Of FormReportBar)
            Public Overridable Property Started As Integer
            Public Overridable Property SubmittedPct As Integer
            Public Overridable Property DropFrom As String
            Public Overridable Property DropN As Integer
            Public Overridable Property Durations As List(Of FormReportBar) = New List(Of FormReportBar)
            Public Overridable Property Fields As List(Of FormReportBar) = New List(Of FormReportBar)
            Public Overridable Property Field As String
            Public Overridable Property FieldLabel As String
            Public Overridable Property Options As List(Of FormReportBar) = New List(Of FormReportBar)
            Public Overridable Property Reasons As List(Of FormReportBar) = New List(Of FormReportBar)
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class
    End Namespace
End Namespace

VB.NET FormReportRequest 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.

GET /v1/forms/{FormUID}/reports HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Submissions":0,"Decided":0,"Approved":0,"RateText":"String","DecisionText":"String","Drafts":0,"Sla":0,"DraftDays":0,"IsRecord":false,"Weeks":[{"Id":"String","Label":"String","N":0,"Value":0,"Text":"String","Tone":"String"}],"Stages":[{"Id":"String","Label":"String","N":0,"Value":0,"Text":"String","Tone":"String"}],"Pages":[{"Id":"String","Label":"String","N":0,"Value":0,"Text":"String","Tone":"String"}],"Started":0,"SubmittedPct":0,"DropFrom":"String","DropN":0,"Durations":[{"Id":"String","Label":"String","N":0,"Value":0,"Text":"String","Tone":"String"}],"Fields":[{"Id":"String","Label":"String","N":0,"Value":0,"Text":"String","Tone":"String"}],"Field":"String","FieldLabel":"String","Options":[{"Id":"String","Label":"String","N":0,"Value":0,"Text":"String","Tone":"String"}],"Reasons":[{"Id":"String","Label":"String","N":0,"Value":0,"Text":"String","Tone":"String"}],"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}