GET api/PunchCustomField/GetPunchCustomField?ActivityId={ActivityId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
ActivityId

string

Required

Body Parameters

None.

Response Information

Resource Description

ApiResultOfListOfTPunchCustomField
NameDescriptionTypeAdditional information
Status

ResultStatus

None.

ErrorMsg

string

None.

TotalNum

integer

None.

Data

Collection of TPunchCustomField

None.

session_key

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 200,
  "ErrorMsg": "sample string 1",
  "TotalNum": 2,
  "Data": [
    {
      "Id": "sample string 1",
      "FieldName": "sample string 2",
      "FieldType": "sample string 3",
      "ActivityId": "sample string 4",
      "Options": [
        {
          "Id": "sample string 1",
          "FieldId": "sample string 2",
          "OptionName": "sample string 3",
          "SortNumber": 4,
          "OptionId": "sample string 1",
          "enabled_flag": "sample string 5",
          "created_by": 6,
          "creation_date": "2026-12-05T14:10:23.265714+08:00",
          "last_updated_by": 8,
          "last_update_date": "2026-12-05T14:10:23.265714+08:00",
          "CreationDateStr": "2026-12-05 14:10:23",
          "LastUpdateDateStr": "2026-12-05 14:10:23",
          "CreationDateStrDay": "2026-12-05",
          "LastUpdateDateStrDay": "2026-12-05",
          "EnabledFlagStr": "<span style='color:green;font-weight:bold' >√</span>"
        },
        {
          "Id": "sample string 1",
          "FieldId": "sample string 2",
          "OptionName": "sample string 3",
          "SortNumber": 4,
          "OptionId": "sample string 1",
          "enabled_flag": "sample string 5",
          "created_by": 6,
          "creation_date": "2026-12-05T14:10:23.265714+08:00",
          "last_updated_by": 8,
          "last_update_date": "2026-12-05T14:10:23.265714+08:00",
          "CreationDateStr": "2026-12-05 14:10:23",
          "LastUpdateDateStr": "2026-12-05 14:10:23",
          "CreationDateStrDay": "2026-12-05",
          "LastUpdateDateStrDay": "2026-12-05",
          "EnabledFlagStr": "<span style='color:green;font-weight:bold' >√</span>"
        }
      ],
      "enabled_flag": "sample string 5",
      "created_by": 6,
      "creation_date": "2026-12-05T14:10:23.265714+08:00",
      "last_updated_by": 8,
      "last_update_date": "2026-12-05T14:10:23.265714+08:00",
      "CreationDateStr": "2026-12-05 14:10:23",
      "LastUpdateDateStr": "2026-12-05 14:10:23",
      "CreationDateStrDay": "2026-12-05",
      "LastUpdateDateStrDay": "2026-12-05",
      "EnabledFlagStr": "<span style='color:green;font-weight:bold' >√</span>"
    },
    {
      "Id": "sample string 1",
      "FieldName": "sample string 2",
      "FieldType": "sample string 3",
      "ActivityId": "sample string 4",
      "Options": [
        {
          "Id": "sample string 1",
          "FieldId": "sample string 2",
          "OptionName": "sample string 3",
          "SortNumber": 4,
          "OptionId": "sample string 1",
          "enabled_flag": "sample string 5",
          "created_by": 6,
          "creation_date": "2026-12-05T14:10:23.265714+08:00",
          "last_updated_by": 8,
          "last_update_date": "2026-12-05T14:10:23.265714+08:00",
          "CreationDateStr": "2026-12-05 14:10:23",
          "LastUpdateDateStr": "2026-12-05 14:10:23",
          "CreationDateStrDay": "2026-12-05",
          "LastUpdateDateStrDay": "2026-12-05",
          "EnabledFlagStr": "<span style='color:green;font-weight:bold' >√</span>"
        },
        {
          "Id": "sample string 1",
          "FieldId": "sample string 2",
          "OptionName": "sample string 3",
          "SortNumber": 4,
          "OptionId": "sample string 1",
          "enabled_flag": "sample string 5",
          "created_by": 6,
          "creation_date": "2026-12-05T14:10:23.265714+08:00",
          "last_updated_by": 8,
          "last_update_date": "2026-12-05T14:10:23.265714+08:00",
          "CreationDateStr": "2026-12-05 14:10:23",
          "LastUpdateDateStr": "2026-12-05 14:10:23",
          "CreationDateStrDay": "2026-12-05",
          "LastUpdateDateStrDay": "2026-12-05",
          "EnabledFlagStr": "<span style='color:green;font-weight:bold' >√</span>"
        }
      ],
      "enabled_flag": "sample string 5",
      "created_by": 6,
      "creation_date": "2026-12-05T14:10:23.265714+08:00",
      "last_updated_by": 8,
      "last_update_date": "2026-12-05T14:10:23.265714+08:00",
      "CreationDateStr": "2026-12-05 14:10:23",
      "LastUpdateDateStr": "2026-12-05 14:10:23",
      "CreationDateStrDay": "2026-12-05",
      "LastUpdateDateStrDay": "2026-12-05",
      "EnabledFlagStr": "<span style='color:green;font-weight:bold' >√</span>"
    }
  ],
  "session_key": "sample string 3"
}

application/xml, text/xml

Sample:
<ApiResultOfArrayOfTPunchCustomFieldxWerJSgz xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ApiService.Models">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers.Punch">
    <d2p1:TPunchCustomField>
      <created_by xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">6</created_by>
      <creation_date xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">2026-12-05T14:10:23.265714+08:00</creation_date>
      <enabled_flag xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">sample string 5</enabled_flag>
      <last_update_date xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">2026-12-05T14:10:23.265714+08:00</last_update_date>
      <last_updated_by xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">8</last_updated_by>
      <d2p1:ActivityId>sample string 4</d2p1:ActivityId>
      <d2p1:FieldName>sample string 2</d2p1:FieldName>
      <d2p1:FieldType>sample string 3</d2p1:FieldType>
      <d2p1:Id>sample string 1</d2p1:Id>
      <d2p1:Options>
        <d2p1:TPunchCustomFieldOption>
          <created_by xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">6</created_by>
          <creation_date xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">2026-12-05T14:10:23.265714+08:00</creation_date>
          <enabled_flag xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">sample string 5</enabled_flag>
          <last_update_date xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">2026-12-05T14:10:23.265714+08:00</last_update_date>
          <last_updated_by xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">8</last_updated_by>
          <d2p1:FieldId>sample string 2</d2p1:FieldId>
          <d2p1:Id>sample string 1</d2p1:Id>
          <d2p1:OptionName>sample string 3</d2p1:OptionName>
          <d2p1:SortNumber>4</d2p1:SortNumber>
        </d2p1:TPunchCustomFieldOption>
        <d2p1:TPunchCustomFieldOption>
          <created_by xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">6</created_by>
          <creation_date xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">2026-12-05T14:10:23.265714+08:00</creation_date>
          <enabled_flag xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">sample string 5</enabled_flag>
          <last_update_date xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">2026-12-05T14:10:23.265714+08:00</last_update_date>
          <last_updated_by xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">8</last_updated_by>
          <d2p1:FieldId>sample string 2</d2p1:FieldId>
          <d2p1:Id>sample string 1</d2p1:Id>
          <d2p1:OptionName>sample string 3</d2p1:OptionName>
          <d2p1:SortNumber>4</d2p1:SortNumber>
        </d2p1:TPunchCustomFieldOption>
      </d2p1:Options>
    </d2p1:TPunchCustomField>
    <d2p1:TPunchCustomField>
      <created_by xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">6</created_by>
      <creation_date xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">2026-12-05T14:10:23.265714+08:00</creation_date>
      <enabled_flag xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">sample string 5</enabled_flag>
      <last_update_date xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">2026-12-05T14:10:23.265714+08:00</last_update_date>
      <last_updated_by xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">8</last_updated_by>
      <d2p1:ActivityId>sample string 4</d2p1:ActivityId>
      <d2p1:FieldName>sample string 2</d2p1:FieldName>
      <d2p1:FieldType>sample string 3</d2p1:FieldType>
      <d2p1:Id>sample string 1</d2p1:Id>
      <d2p1:Options>
        <d2p1:TPunchCustomFieldOption>
          <created_by xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">6</created_by>
          <creation_date xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">2026-12-05T14:10:23.265714+08:00</creation_date>
          <enabled_flag xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">sample string 5</enabled_flag>
          <last_update_date xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">2026-12-05T14:10:23.265714+08:00</last_update_date>
          <last_updated_by xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">8</last_updated_by>
          <d2p1:FieldId>sample string 2</d2p1:FieldId>
          <d2p1:Id>sample string 1</d2p1:Id>
          <d2p1:OptionName>sample string 3</d2p1:OptionName>
          <d2p1:SortNumber>4</d2p1:SortNumber>
        </d2p1:TPunchCustomFieldOption>
        <d2p1:TPunchCustomFieldOption>
          <created_by xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">6</created_by>
          <creation_date xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">2026-12-05T14:10:23.265714+08:00</creation_date>
          <enabled_flag xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">sample string 5</enabled_flag>
          <last_update_date xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">2026-12-05T14:10:23.265714+08:00</last_update_date>
          <last_updated_by xmlns="http://schemas.datacontract.org/2004/07/Gjh.Model.healthkeepers">8</last_updated_by>
          <d2p1:FieldId>sample string 2</d2p1:FieldId>
          <d2p1:Id>sample string 1</d2p1:Id>
          <d2p1:OptionName>sample string 3</d2p1:OptionName>
          <d2p1:SortNumber>4</d2p1:SortNumber>
        </d2p1:TPunchCustomFieldOption>
      </d2p1:Options>
    </d2p1:TPunchCustomField>
  </Data>
  <ErrorMsg>sample string 1</ErrorMsg>
  <Status>Success</Status>
  <TotalNum>2</TotalNum>
  <session_key>sample string 3</session_key>
</ApiResultOfArrayOfTPunchCustomFieldxWerJSgz>