SAP Knowledge Base Article - Public

3736520 - odata 'routingrule' workflowconditionexpressioncollection returns no data

Symptom

The OData collection WorkflowConditionExpressionCollection does not return any data. You expect it to show the rules maintained in the Activity Planner.

Environment

Cloud for Customer

Reproducing the Issue

  1. Go to the Administrator work center.
  2. Open the OData Service Explorer for the OData services.
  3. Select the service name: routingrule and click Test.
  4. Query the WorkflowConditionExpressionCollection entity set.
  5. Observe that no data is returned, even when filtering by specific IDs.

Cause

WorkflowConditionExpressionCollection does not show conditions from routing rules; it shows conditions maintained in workflow rules.

Additionally, data for WorkflowConditionExpressionCollection is returned only if a condition with the "visit type" code is maintained.

Resolution

  1. Use the RoutingRuleCollection entity set to retrieve routing rules maintained in the Activity Planner. Please note that there is no collection for rule conditions.
  2. If your goal is to read workflow rule conditions, continue using WorkflowConditionExpressionCollection and ensure that a condition with the "visit type" code is maintained so that data is returned.

See Also

Keywords

odata, routingrule, workflowconditionexpressioncollection, activity planner, routing rules, empty response, no data, workflow rules, visit type, entity set, api, activity routing, conditions, endpoint, filter , KBA , LOD-CRM-ACT-ROT , Activity Routing , How To

Product

SAP Cloud for Customer core applications all versions