POST api/process/getcount

Request Information

URI Parameters

None.

Body Parameters

ProcessSearchParameter
NameDescriptionTypeAdditional information
MCSearch

boolean

None.

FieldSort

Collection of FieldSort

None.

StatType

ProcessStatType

None.

PublishStatus

PublishStatusType

None.

DueDate1

date

None.

DueDate2

date

None.

PerResourceOnly

boolean

None.

IsError

boolean

None.

IsCompleted

boolean

None.

IsOverdue

boolean

None.

IsCancelled

boolean

None.

IsTodo

boolean

None.

IsOwnedProcess

boolean

None.

IsApproval

boolean

None.

WorkflowIds

Collection of integer

None.

ProcessOwnerIds

Collection of integer

None.

ProcessId

integer

None.

WFID

integer

None.

Keywords

Dictionary of string [key] and string [value]

None.

MetadataSearch

boolean

None.

Keyword

string

None.

DateFrom

date

None.

DateTo

date

None.

LoginUserId

integer

None.

IsPublicUser

boolean

None.

PublicAccountID

integer

None.

TenantID

integer

None.

PageNo

integer

None.

RowLimit

integer

None.

RecordCount

integer

None.

Offset

integer

None.

PageCount

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "MCSearch": true,
  "FieldSort": [
    {
      "Name": "sample string 1",
      "SortOrder": 0
    },
    {
      "Name": "sample string 1",
      "SortOrder": 0
    }
  ],
  "StatType": 0,
  "PublishStatus": 0,
  "DueDate1": "2025-10-26T11:18:19.7610691+08:00",
  "DueDate2": "2025-10-26T11:18:19.7610691+08:00",
  "PerResourceOnly": true,
  "IsError": true,
  "IsCompleted": true,
  "IsOverdue": true,
  "IsCancelled": true,
  "IsTodo": true,
  "IsOwnedProcess": true,
  "IsApproval": true,
  "WorkflowIds": [
    1,
    2
  ],
  "ProcessOwnerIds": [
    1,
    2
  ],
  "ProcessId": 3,
  "WFID": 4,
  "Keywords": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "MetadataSearch": true,
  "Keyword": "sample string 6",
  "DateFrom": "2025-10-26T11:18:19.7610691+08:00",
  "DateTo": "2025-10-26T11:18:19.7610691+08:00",
  "LoginUserId": 7,
  "IsPublicUser": true,
  "PublicAccountID": 9,
  "TenantID": 10,
  "PageNo": 11,
  "RowLimit": 12,
  "RecordCount": 13,
  "Offset": 120,
  "PageCount": 2
}

application/xml, text/xml

Sample:
<ProcessSearchParameter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.DTO">
  <PageNo>11</PageNo>
  <RecordCount>13</RecordCount>
  <RowLimit>12</RowLimit>
  <DateFrom>2025-10-26T11:18:19.7610691+08:00</DateFrom>
  <DateTo>2025-10-26T11:18:19.7610691+08:00</DateTo>
  <IsPublicUser>true</IsPublicUser>
  <Keyword>sample string 6</Keyword>
  <LoginUserId>7</LoginUserId>
  <PublicAccountID>9</PublicAccountID>
  <TenantID>10</TenantID>
  <Keywords xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Keywords>
  <MetadataSearch>true</MetadataSearch>
  <ProcessId>3</ProcessId>
  <WFID>4</WFID>
  <DueDate1>2025-10-26T11:18:19.7610691+08:00</DueDate1>
  <DueDate2>2025-10-26T11:18:19.7610691+08:00</DueDate2>
  <FieldSort>
    <FieldSort>
      <Name>sample string 1</Name>
      <SortOrder>Ascending</SortOrder>
    </FieldSort>
    <FieldSort>
      <Name>sample string 1</Name>
      <SortOrder>Ascending</SortOrder>
    </FieldSort>
  </FieldSort>
  <IsApproval>true</IsApproval>
  <IsCancelled>true</IsCancelled>
  <IsCompleted>true</IsCompleted>
  <IsError>true</IsError>
  <IsOverdue>true</IsOverdue>
  <IsOwnedProcess>true</IsOwnedProcess>
  <IsTodo>true</IsTodo>
  <MCSearch>true</MCSearch>
  <PerResourceOnly>true</PerResourceOnly>
  <ProcessOwnerIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </ProcessOwnerIds>
  <PublishStatus>Unpublished</PublishStatus>
  <StatType>SummaryTotal</StatType>
  <WorkflowIds xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </WorkflowIds>
</ProcessSearchParameter>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ProcessSearchParameter'.

Response Information

Resource Description

ProcessCount
NameDescriptionTypeAdditional information
Today

integer

None.

ThisWeek

integer

None.

ThisMonth

integer

None.

All

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Today": 1,
  "ThisWeek": 2,
  "ThisMonth": 3,
  "All": 4
}

application/xml, text/xml

Sample:
<ProcessCount xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.DTO">
  <All>4</All>
  <ThisMonth>3</ThisMonth>
  <ThisWeek>2</ThisWeek>
  <Today>1</Today>
</ProcessCount>