Get Work Item Count
Properties
- Input
- Project Id
- Type:
int?
- Description: Filter by a project's unique identifier. This is an optional argument.
- Type:
- Work Item Type
- Type:
WorkItemType?
- Description: Filter by work item type (e.g.,
WorkItemType.Document
). This is an optional argument.
- Type:
- Work Item Action
- Type:
WorkItemAction?
- Description: Filter by work item action that the user should perform (e.g.,
WorkItemAction.Verify
). This is an optional argument.
- Type:
- Work Item Status
- Type:
WorkItemStatus?
- Description: Filter by work item status (e.g.,
WorkItemStatus.Created
). This is an optional argument.
- Type:
- Document Id
- Type:
int?
- Description: Filter by a document's unique identifier. This is an optional argument.
- Type:
- Shred Id
- Type:
int?
- Description: Filter by a shred's unique identifier. This is an optional argument.
- Type:
- Start Date
- Type:
DateTime?
- Description: Filter from starting date. This is an optional argument.
- Type:
- End Date
- Type:
DateTime?
- Description: Filter up to end date. This is an optional argument.
- Type:
- Comment
- Type:
string
- Description: Filter by comment. This is an optional argument.
- Type:
- Project Id
Usage
- Setup Activity:
- Add the "Get Work Item Count" activity to your UiPath workflow.
- Configure the optional input arguments to specify the criteria for filtering work items. This can include project or document-related filters, date/time ranges, and other attributes of the work items such as type, action, and status.
- Execution:
- The activity executes asynchronously, retrieving the count of work items that match the specified filter criteria for the currently authenticated user.
- It uses the configured API context to access the work item data via the work item client.
- Output:
- The activity returns an
int
, representing the count of work items that match the specified filters.
- The activity returns an
Considerations
- Filter Criteria: Use the available filters to narrow down the work items to those relevant to your analysis or management needs.
- Date and Time Filters: Utilize the date filters to focus on work items within a specific timeframe, improving performance and relevance of the results.
- Permissions: Verify that the necessary permissions are in place for the user or application retrieving the work item count to prevent unauthorized actions.
- Error Handling: Implement error handling to manage potential issues such as network connectivity problems or unexpected API responses.