Trendsic Platform Service

<back to all web services

FieldLogPrefillRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/fieldlog/prefill
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 FieldLogCrewPrefill
            Public Overridable Property ContactId As Integer
            Public Overridable Property Name As String
            Public Overridable Property Role As String
            Public Overridable Property DefaultHours As Double
            Public Overridable Property CostCode As String
        End Class

        Public Partial Class FieldLogEquipmentPrefill
            Public Overridable Property EquipmentId As Integer
            Public Overridable Property Name As String
            Public Overridable Property Code As String
        End Class

        Public Partial Class FieldLogPayItemPrefill
            Public Overridable Property Code As String
            Public Overridable Property Name As String
            Public Overridable Property Unit As String
            Public Overridable Property ToDate As Double
            Public Overridable Property Total As Double
        End Class

        Public Partial Class FieldLogPrefillRequest
            Public Overridable Property ProjectId As Integer
            Public Overridable Property [Date] As String
        End Class

        Public Partial Class FieldLogPrefillResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property ProjectName As String
            Public Overridable Property SolicitationNumber As String
            Public Overridable Property StationRange As String
            Public Overridable Property Crew As List(Of FieldLogCrewPrefill) = New List(Of FieldLogCrewPrefill)
            Public Overridable Property Equipment As List(Of FieldLogEquipmentPrefill) = New List(Of FieldLogEquipmentPrefill)
            Public Overridable Property PayItems As List(Of FieldLogPayItemPrefill) = New List(Of FieldLogPayItemPrefill)
            Public Overridable Property Subs As List(Of FieldLogSubPrefill) = New List(Of FieldLogSubPrefill)
            Public Overridable Property PriorDayFilled As Boolean
        End Class

        Public Partial Class FieldLogSubPrefill
            Public Overridable Property ContactId As Integer
            Public Overridable Property Name As String
            Public Overridable Property Trade As String
        End Class
    End Namespace
End Namespace

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

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"ProjectName":"String","SolicitationNumber":"String","StationRange":"String","Crew":[{"ContactId":0,"Name":"String","Role":"String","DefaultHours":0,"CostCode":"String"}],"Equipment":[{"EquipmentId":0,"Name":"String","Code":"String"}],"PayItems":[{"Code":"String","Name":"String","Unit":"String","ToDate":0,"Total":0}],"Subs":[{"ContactId":0,"Name":"String","Trade":"String"}],"PriorDayFilled":false}