POST api/reports/process-count-per-wf

Request Information

URI Parameters

None.

Body Parameters

ReportSearchParameter
NameDescriptionTypeAdditional information
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:
{
  "ProcessId": 1,
  "WFID": 2,
  "Keywords": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "MetadataSearch": true,
  "Keyword": "sample string 4",
  "DateFrom": "2025-10-26T11:18:20.7635914+08:00",
  "DateTo": "2025-10-26T11:18:20.7635914+08:00",
  "LoginUserId": 5,
  "IsPublicUser": true,
  "PublicAccountID": 7,
  "TenantID": 8,
  "PageNo": 9,
  "RowLimit": 10,
  "RecordCount": 11,
  "Offset": 80,
  "PageCount": 2
}

application/xml, text/xml

Sample:
<ReportSearchParameter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.DTO">
  <PageNo>9</PageNo>
  <RecordCount>11</RecordCount>
  <RowLimit>10</RowLimit>
  <DateFrom>2025-10-26T11:18:20.7635914+08:00</DateFrom>
  <DateTo>2025-10-26T11:18:20.7635914+08:00</DateTo>
  <IsPublicUser>true</IsPublicUser>
  <Keyword>sample string 4</Keyword>
  <LoginUserId>5</LoginUserId>
  <PublicAccountID>7</PublicAccountID>
  <TenantID>8</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>1</ProcessId>
  <WFID>2</WFID>
</ReportSearchParameter>

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 'ReportSearchParameter'.

Response Information

Resource Description

Collection of DTOProcessSummaryCount
NameDescriptionTypeAdditional information
WFID

integer

None.

Title

string

None.

TotalProcess

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "WFID": 1,
    "Title": "sample string 2",
    "TotalProcess": 3
  },
  {
    "WFID": 1,
    "Title": "sample string 2",
    "TotalProcess": 3
  }
]

application/xml, text/xml

Sample:
<ArrayOfDTOProcessSummaryCount xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PTI.AF.DTO">
  <DTOProcessSummaryCount>
    <Title>sample string 2</Title>
    <TotalProcess>3</TotalProcess>
    <WFID>1</WFID>
  </DTOProcessSummaryCount>
  <DTOProcessSummaryCount>
    <Title>sample string 2</Title>
    <TotalProcess>3</TotalProcess>
    <WFID>1</WFID>
  </DTOProcessSummaryCount>
</ArrayOfDTOProcessSummaryCount>