Trendsic Platform Service

<back to all web services

FormOfficeOfferedRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/forms/office
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 FormInboxCount
            Public Overridable Property V As String
            Public Overridable Property L As String
            Public Overridable Property N As Integer
        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
        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

        Public Partial Class FormOfficeOfferedRequest
            Public Overridable Property FormUID As Guid?
        End Class

        Public Partial Class FormOfficeOfferedResponse
            Public Overridable Property Apps As List(Of FormOfficeApp) = New List(Of FormOfficeApp)
            Public Overridable Property Branches As List(Of FormInboxCount) = New List(Of FormInboxCount)
            Public Overridable Property Drafts As List(Of FormOfficeDraftRow) = New List(Of FormOfficeDraftRow)
            Public Overridable Property CanSearchContacts As Boolean
            Public Overridable Property ResponseStatus As ResponseStatus
        End Class
    End Namespace
End Namespace

VB.NET FormOfficeOfferedRequest 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/office HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Apps":[{"FormUID":"String","Name":"String","Noun":"String","DefaultBranchId":"String"}],"Branches":[{"V":"String","L":"String","N":0}],"Drafts":[{"SubmissionUID":"String","FormUID":"String","FormName":"String","ForName":"String","BranchName":"String","ContactId":0,"Page":0,"Pages":0,"SavedBy":"String","SavedAt":"String"}],"CanSearchContacts":false,"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}}}