$filter Query Parameter for /Changes
The /changes endpoint supports an optional $filter query parameter to restrict the results by approvable type (project type) and approvable subtype. For example, you can restrict the results to sourcing Approval for Publish tasks.
A $filter parameter consists of one or more ApprovableType expressions, optionally followed by one or more ApprovableSubType expressions.
- eq (equal)
- ne (not equal)
- or
- and
You can also use parentheses to group expressions.
For example, the following filter restricts the results to sourcing Approval for Publish or Approval for Awards tasks:
$filter=ApprovableType eq 'Sourcing' and (ApprovableSubType eq 'ApprovalForPublish' or ApprovableSubType eq 'ApprovalForAward')
The value of ApprovableType determines the valid values for ApprovableSubType, as shown in the following table.
ApprovableSubType expressions also support the following operators: ge (greater than or equal to), gt (greater than), le (less than or equal to), lt (less than). Expressions with these operators are evaluated based on the ASCII order (A-Z, then a-z) of the ApprovableSubType values. Entries in the following table are also sorted in ASCII order.
|
ApprovableType |
ApprovableSubType |
Description |
|---|---|---|
|
Contract |
Contract |
Approval tasks for documents in a contracts workspace or entire contract workspaces. |
|
(none) |
Same result as Contract value for ApprovableSubType. |
|
|
SLP - for SAP Ariba Supplier Lifecycle and Performance and SAP Ariba Supplier Information and Performance Management (new architecture) |
PreferredSupplier |
Only available in solutions that include SAP Ariba Supplier Lifecycle and Performance. Triggered when a user requests a new or changed preferred status level for a supplier and an approval task is defined for the status change. |
|
SMQuestionnaire |
Triggered when a supplier submits an ad hoc questionnaire (such as a modular questionnaire) that collects data not collected via other workflows. |
|
|
SupplierDisqualification |
Only available in solutions that include SAP Ariba Supplier Lifecycle and Performance. Triggered when a category or supplier manager submits a request to disqualify a previously qualified supplier for one or more specific combinations of commodities, regions, and (optionally) departments |
|
|
SupplierQualification |
Only available in solutions that include SAP Ariba Supplier Lifecycle and Performance. Triggered when a supplier contact submits responses to the qualification questionnaire, which is used to qualify a supplier for one or more specific combinations of commodities, regions, and (optionally) departments. |
|
|
SupplierRegistration |
Triggered when a supplier contact submits responses to the registration questionnaire. |
|
|
RFXDocument (For supplier requests, which use surveys to collect information; surveys are categorized as RFX documents.) |
Triggered when an SAP Ariba user or a supplier submits a supplier request (request to create a supplier). The request includes information about the supplier, such as name, address, and primary contact. |
|
|
(none) |
All ApprovableSubType values for SLP. |
|
|
Sourcing |
ApprovalForAward |
Approval for Award task. Triggered when a user submits an award for a sourcing event. |
|
ApprovalForPublish |
Approval for Publish task. Triggered when a user submits an event for publishing. |
|
|
ApprovalForSourcingProject |
Approval task for a full sourcing project. |
|
|
(none) |
All ApprovableSubType values for Sourcing. |
|
|
SR - for SAP Ariba Supplier Risk |
EngagementRequest |
Approval task for a control-based engagement risk assessment project. |
|
IssueManagement |
Approval task for an issue management project. |
Examples
-
Restrict results to approval tasks for contract workspaces:
$filter=ApprovableType eq 'Contracts'
-
Restrict results to supplier request approval tasks for SAP Ariba Supplier Lifecycle and Performance and SAP Ariba Supplier Information and Performance Management (new architecture):
$filter=ApprovableType eq 'SLP' and (ApprovableSubType eq 'RFXDocument)
-
Restrict results to sourcing Approval for Publish tasks or approval tasks for full sourcing projects:
$filter=ApprovableType eq 'Sourcing' and (ApprovableSubType eq 'ApprovalForPublish' or ApprovableSubType eq 'ApprovalForSourcingProject')