GET api/Comments/WorkOrder/{workorderId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
workorderId

integer

Required

Body Parameters

None

Response Information

Resource Description

Collection of CommentFragment
NameDescriptionTypeAdditional information
Id

integer None.
Subject

string None.
Body

string None.
WorkOrderNumber

string None.
OwnerUserId

integer None.
CreateUser

string None.
CreateDateTime

date None.
AllowInternal

boolean None.
AllowClient

boolean None.
AllowVendor

boolean None.
AllowCorporate

boolean None.
WorkOrderStatusID

integer None.
CommentTypeID

integer None.
IsEmailHighImportance

boolean None.
RequestCodeID

integer None.
User

string None.
Role

string None.
Company

string None.
FirstName

string None.
LastName

string None.

Response Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "subject": "sample string 2",
    "body": "sample string 3",
    "workOrderNumber": "sample string 4",
    "ownerUserId": 1,
    "createUser": "sample string 5",
    "createDateTime": "2024-05-20T02:39:01.6046351Z",
    "allowInternal": true,
    "allowClient": true,
    "allowVendor": true,
    "allowCorporate": true,
    "workOrderStatusID": 1,
    "commentTypeID": 1,
    "isEmailHighImportance": true,
    "requestCodeID": 1,
    "user": "sample string 8",
    "role": "sample string 9",
    "company": "sample string 10",
    "firstName": "sample",
    "lastName": "string"
  },
  {
    "id": 1,
    "subject": "sample string 2",
    "body": "sample string 3",
    "workOrderNumber": "sample string 4",
    "ownerUserId": 1,
    "createUser": "sample string 5",
    "createDateTime": "2024-05-20T02:39:01.6046351Z",
    "allowInternal": true,
    "allowClient": true,
    "allowVendor": true,
    "allowCorporate": true,
    "workOrderStatusID": 1,
    "commentTypeID": 1,
    "isEmailHighImportance": true,
    "requestCodeID": 1,
    "user": "sample string 8",
    "role": "sample string 9",
    "company": "sample string 10",
    "firstName": "sample",
    "lastName": "string"
  }
]

application/xml, text/xml

Sample:
<ArrayOfCommentFragment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ControlESI.FMPilot.Core.BE.Entities.WorkOrder">
  <CommentFragment>
    <AllowClient>true</AllowClient>
    <AllowCorporate>true</AllowCorporate>
    <AllowInternal>true</AllowInternal>
    <AllowVendor>true</AllowVendor>
    <Body>sample string 3</Body>
    <CommentTypeID>1</CommentTypeID>
    <Company>sample string 10</Company>
    <CreateDateTime>2024-05-20T02:39:01.6046351+00:00</CreateDateTime>
    <CreateUser>sample string 5</CreateUser>
    <FirstName>sample</FirstName>
    <Id>1</Id>
    <IsEmailHighImportance>true</IsEmailHighImportance>
    <LastName>string</LastName>
    <OwnerUserId>1</OwnerUserId>
    <RequestCodeID>1</RequestCodeID>
    <Role>sample string 9</Role>
    <Subject>sample string 2</Subject>
    <User>sample string 8</User>
    <WorkOrderNumber>sample string 4</WorkOrderNumber>
    <WorkOrderStatusID>1</WorkOrderStatusID>
  </CommentFragment>
  <CommentFragment>
    <AllowClient>true</AllowClient>
    <AllowCorporate>true</AllowCorporate>
    <AllowInternal>true</AllowInternal>
    <AllowVendor>true</AllowVendor>
    <Body>sample string 3</Body>
    <CommentTypeID>1</CommentTypeID>
    <Company>sample string 10</Company>
    <CreateDateTime>2024-05-20T02:39:01.6046351+00:00</CreateDateTime>
    <CreateUser>sample string 5</CreateUser>
    <FirstName>sample</FirstName>
    <Id>1</Id>
    <IsEmailHighImportance>true</IsEmailHighImportance>
    <LastName>string</LastName>
    <OwnerUserId>1</OwnerUserId>
    <RequestCodeID>1</RequestCodeID>
    <Role>sample string 9</Role>
    <Subject>sample string 2</Subject>
    <User>sample string 8</User>
    <WorkOrderNumber>sample string 4</WorkOrderNumber>
    <WorkOrderStatusID>1</WorkOrderStatusID>
  </CommentFragment>
</ArrayOfCommentFragment>