Skip a Strategy Template Task

Jane wants to skip a strategy template task of a collections strategy. To do this, she must search for the template task ID that is in the To Be Created status and update the template task status.

Here are the steps to skip a template task using the Strategy Template Tasks child resource of the Collections Strategies REST API:
  1. Retrieve the template task ID using the GET action.
  2. Skip the template task using the PATCH action.

Step 1: Retrieve the Template Task ID

Use the task name and work order number to get a specific template task ID.

Example URL

Here's an example of the resource URL:

GET

/fscmRestApi/resources/11.13.18.05/collectionStrategies/300100180949928/child/strategyTemplateTasks?q=TemplateTaskName='Soft Customer Visit';WorkOrder=200&onlyData=true

Example Response

Here's an example of the response body in JSON format:

{
  "items": [
    {
      "TemplateTaskId": 104,
      "WorkOrder": 200,
      "TemplateTaskStatus": "To Be Created",
      "TemplateTaskName": "Soft Customer Visit",
      "TemplateTaskType": "Manual"
    }
  ],
  "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/strategyTemplateTasks",
      "name": "strategyTemplateTasks",
      "kind": "collection"
    }
  ]
}

To retrieve all template tasks associated with a strategy that are not processed yet, use the following example URL:

https://{{url}}/fscmRestApi/resources/11.13.18.05/collectionStrategies/300100180949928/child/strategyTemplateTasks?onlyData=true&orderBy=WorkOrder

Step 2: Skip the Template Task

Using the task ID (TemplateTaskId) from the response in Step 1, update the template task status to Skip.

Example URL

Here's an example of the resource URL:

PATCH

fscmRestApi/resources/11.13.18.05/collectionStrategies/300100180949928/child/strategyTemplateTasks/104

Example Request

Here's an example of the request body in JSON format:

{
    "TemplateTaskStatus":"Skip"
}

Example Response

Here's an example of the response body in JSON format:

{  "TemplateTaskId": 104,
  "WorkOrder": 200,
  "TemplateTaskStatus": "Skip",
  "TemplateTaskName": "Soft Customer Visit",
  "TemplateTaskType": "Manual",
  "links": [
    {
      "rel": "self",
      "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/collectionStrategies/300100180949928/child/strategyTemplateTasks/104",
      "name": "strategyTemplateTasks",
      "kind": "item",
      "properties": {
        "changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
      }
    },
    {
      "rel": "canonical",
      "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/collectionStrategies/300100180949928/child/strategyTemplateTasks/104",
      "name": "strategyTemplateTasks",
      "kind": "item"
    },
    {
      "rel": "parent",
      "href": "https://servername.fa.us2.oraclecloud.com/fscmRestApi/resources/11.13.18.05/collectionStrategies/300100180949928",
     "name": "collectionStrategies",
      "kind": "item"
    }
  ]
}