Skip a Strategy User Task
Jane wants to skip a strategy user task of a collections strategy. To do this, she must search for the user task ID that is in the To Be Created status and update the user task status.
Here are the steps to skip a user task using the User Tasks child resource of the Collections Strategies REST API:
- Retrieve the user task ID using the GET action.
- Skip the user task using the PATCH action.
Step 1: Retrieve the User Task ID
Provide the strategy ID to get the user task details.
Example URL
Here's an example of the resource URL:
GET
fscmRestApi/resources/11.13.18.05/collectionStrategies/300100180949928/child/strategyUserTasks?onlyData=true
Example Response
Here's an example of the response body in JSON format:
{
"items": [
{
"UserItemId": 300100180949929,
"WorkOrder": 250,
"StrategyTaskTemplate": "Hard Customer Call",
"UserTaskStatus": "To Be Created",
"UserTaskType": "Manual",
"CreatedBy": "COLLECTIONS_MGR_OPERATIONS",
"CreationDate": "2019-10-16T06:25:21.037+00:00",
"LastUpdateDate": "2019-10-16T06:25:21.053+00:00",
"LastUpdatedBy": "COLLECTIONS_MGR_OPERATIONS"
}
],
"count": 1,
"hasMore": false,
"limit": 25,
"offset": 0,
"links": [
{
"rel": "self",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/collectionStrategies/300100180949928/child/strategyUserTasks",
"name": "strategyUserTasks",
"kind": "collection"
}
]
}
Step 2: Skip the User Task
Using the task ID (UserItemId) from the response in Step 1, update the user task status to Skip.
Example URL
Here's an example of the resource URL:
PATCH
fscmRestApi/resources/11.13.18.05/collectionStrategies/300100180949928/child/strategyUserTasks/300100180949929
Example Request
Here's an example of the request body in JSON format:
{
"UserTaskStatus":"Skip"
}
Example Response
Here's an example of the response body in JSON format:
{
"UserItemId": 300100180949929,
"WorkOrder": 250,
"StrategyTaskTemplate": "Hard Customer Call",
"UserTaskStatus": "Skip",
"UserTaskType": "Manual",
"CreatedBy": "COLLECTIONS_MGR_OPERATIONS",
"CreationDate": "2019-10-16T06:25:21.037+00:00",
"LastUpdateDate": "2019-10-16T06:36:44+00:00",
"LastUpdatedBy": "COLLECTIONS_MGR_OPERATIONS",
"links": [
{
"rel": "self",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/collectionStrategies/300100180949928/child/strategyUserTasks/300100180949929",
"name": "strategyUserTasks",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000278"
}
},
{
"rel": "canonical",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/collectionStrategies/300100180949928/child/strategyUserTasks/300100180949929",
"name": "strategyUserTasks",
"kind": "item"
},
{
"rel": "parent",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/collectionStrategies/300100180949928",
"name": "collectionStrategies",
"kind": "item"
},
{
"rel": "lov",
"href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/collectionStrategies/300100180949928/child/strategyUserTasks/300100180949929/lov/userStrategyTaskTemplates",
"name": "userStrategyTaskTemplates",
"kind": "collection"
}
]
}