Trendsic Platform Service

<back to all web services

ProjectsListByClientRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/Project/ByClient/{ClientID}
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 Location
            Public Overridable Property Id As Guid
            Public Overridable Property ClientId As Guid
            Public Overridable Property Name As String
            Public Overridable Property Address1 As String
            Public Overridable Property Address2 As String
            Public Overridable Property City As String
            Public Overridable Property State As String
            Public Overridable Property Zip As String
            Public Overridable Property Phone As String
            Public Overridable Property Fax As String
            Public Overridable Property URL As String
            Public Overridable Property Email As String
            Public Overridable Property TimeZone As String
            Public Overridable Property Active As Boolean
            Public Overridable Property EntDate As Date
            Public Overridable Property ModDate As Date
            Public Overridable Property LocationImage As String
        End Class

        Public Partial Class Project
            Public Overridable Property ProjectID As Integer
            Public Overridable Property ProjectUID As Guid
            Public Overridable Property ProjectName As String
            Public Overridable Property ImageURL As String
            Public Overridable Property ImageKey As String
            Public Overridable Property ClientName As String
            Public Overridable Property ClientPhone As String
            Public Overridable Property ClientEmail As String
            Public Overridable Property NotifyCustomerOnVisitCompletion As Boolean
            Public Overridable Property ClientContactID As Integer?
            Public Overridable Property ProjectManagerID As Integer
            Public Overridable Property ProjectManagerName As String
            Public Overridable Property StartDate As Date?
            Public Overridable Property EndDate As Date?
            Public Overridable Property ActualStartDate As Date?
            Public Overridable Property ActualEndDate As Date?
            Public Overridable Property JobCount As Integer
            Public Overridable Property CrewMemberCount As Integer
            Public Overridable Property CrewAvatarsJson As String
            Public Overridable Property CrewNamesSearch As String
            Public Overridable Property EquipmentCount As Integer
            Public Overridable Property MaterialCount As Integer
            Public Overridable Property ProjectStatusID As Short
            Public Overridable Property ProjectStatusDescription As String
            Public Overridable Property Budget As Decimal
            Public Overridable Property CostToDate As Decimal
            Public Overridable Property ProjectLocation As String
            Public Overridable Property ProjectType As String
            Public Overridable Property ProjectSponsor As String
            Public Overridable Property CreatedBy As String
            Public Overridable Property CreatedAt As Date?
            Public Overridable Property UpdatedAt As Date?
            Public Overridable Property ProjectDescription As String
            Public Overridable Property Scope As String
            Public Overridable Property StatusId As Integer
            Public Overridable Property BranchId As Guid
            Public Overridable Property BranchName As String
            Public Overridable Property Location As Location
        End Class

        Public Partial Class ProjectsListByClientRequest
            Public Overridable Property ClientID As Integer
            Public Overridable Property Projects As List(Of Project) = New List(Of Project)
        End Class

        Public Partial Class ProjectsListByClientResponse
            Public Overridable Property ResponseStatus As ResponseStatus
            Public Overridable Property Projects As List(Of Project) = New List(Of Project)
        End Class
    End Namespace
End Namespace

VB.NET ProjectsListByClientRequest 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/Project/ByClient/{ClientID} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Projects":[{"ProjectID":0,"ProjectUID":"00000000000000000000000000000000","ProjectName":"String","ImageURL":"String","ImageKey":"String","ClientName":"String","ClientPhone":"String","ClientEmail":"String","NotifyCustomerOnVisitCompletion":false,"ClientContactID":0,"ProjectManagerID":0,"ProjectManagerName":"String","StartDate":"0001-01-01T00:00:00.0000000","EndDate":"0001-01-01T00:00:00.0000000","ActualStartDate":"0001-01-01T00:00:00.0000000","ActualEndDate":"0001-01-01T00:00:00.0000000","JobCount":0,"CrewMemberCount":0,"CrewAvatarsJson":"String","CrewNamesSearch":"String","EquipmentCount":0,"MaterialCount":0,"ProjectStatusID":0,"ProjectStatusDescription":"String","Budget":0,"CostToDate":0,"ProjectLocation":"String","ProjectType":"String","ProjectSponsor":"String","CreatedBy":"String","CreatedAt":"0001-01-01T00:00:00.0000000","UpdatedAt":"0001-01-01T00:00:00.0000000","ProjectDescription":"String","Scope":"String","StatusId":0,"BranchId":"00000000000000000000000000000000","BranchName":"String","Location":{"Id":"00000000000000000000000000000000","ClientId":"00000000000000000000000000000000","Name":"String","Address1":"String","Address2":"String","City":"String","State":"String","Zip":"String","Phone":"String","Fax":"String","URL":"String","Email":"String","TimeZone":"String","Active":false,"EntDate":"0001-01-01T00:00:00.0000000","ModDate":"0001-01-01T00:00:00.0000000","LocationImage":"String"}}]}