Trendsic Platform Service

<back to all web services

FormContactPanelRequest

Requires Authentication
The following routes are available for this service:
GET/v1/forms/contacts/{ContactId}
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 FormContactPanelRequest
            Public Overridable Property ContactId As Integer
        End Class

        Public Partial Class FormContactPanelResponse
            Public Overridable Property Subs As List(Of FormContactPanelSub) = New List(Of FormContactPanelSub)
            Public Overridable Property Drafts As List(Of FormOfficeDraftRow) = New List(Of FormOfficeDraftRow)
            Public Overridable Property Forms As List(Of FormOfficeApp) = New List(Of FormOfficeApp)
            Public Overridable Property CanStart As Boolean
            Public Overridable Property ContactName As String
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class

        Public Partial Class FormContactPanelSub
            Public Overridable Property SubmissionUID As String
            Public Overridable Property Number As String
            Public Overridable Property FormName As String
            Public Overridable Property Stage As String
            Public Overridable Property Tone As String
            Public Overridable Property SubmittedAt As String
            Public Overridable Property BranchName As String
        End Class

        Public Partial Class FormOfficeApp
            Public Overridable Property FormUID As String
            Public Overridable Property Name As String
            Public Overridable Property Noun As String
            Public Overridable Property DefaultBranchId As String
            Public Overridable Property IsRecord As Boolean
            Public Overridable Property RoleName As String
        End Class

        Public Partial Class FormOfficeDraftRow
            Public Overridable Property SubmissionUID As String
            Public Overridable Property FormUID As String
            Public Overridable Property FormName As String
            Public Overridable Property ForName As String
            Public Overridable Property BranchName As String
            Public Overridable Property ContactId As Integer?
            Public Overridable Property Page As Integer
            Public Overridable Property Pages As Integer
            Public Overridable Property SavedBy As String
            Public Overridable Property SavedAt As String
        End Class
    End Namespace
End Namespace

VB.NET FormContactPanelRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/forms/contacts/{ContactId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Subs":[{"SubmissionUID":"String","Number":"String","FormName":"String","Stage":"String","Tone":"String","SubmittedAt":"String","BranchName":"String"}],"Drafts":[{"SubmissionUID":"String","FormUID":"String","FormName":"String","ForName":"String","BranchName":"String","ContactId":0,"Page":0,"Pages":0,"SavedBy":"String","SavedAt":"String"}],"Forms":[{"FormUID":"String","Name":"String","Noun":"String","DefaultBranchId":"String","IsRecord":false,"RoleName":"String"}],"CanStart":false,"ContactName":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}