You can use Anaplan models as a source or sink in a pipeline. You can also use Anaplan models as both the source and sink within the same pipeline. 

When used as a source, model data is exported out of the model. When used as a sink, data is imported into the model.

To connect your pipeline to an Anaplan model, you can create the model connection when you create the pipeline. Once created, the model connection can be used for other pipelines.

In the sections below, the procedures are similar and involve how to set up an Anaplan model as either a source or sink. The key differentiator between the use cases is where you specify the Anaplan model.

This table summarizes the process of how to create a pipeline with a model for various use cases.

Use caseSource and sink steps
Model as a source

When you set an Anaplan model as a source, data from the model is brought into the pipeline.

Use the steps in ‌the Anaplan models as a pipeline source section.

Here’s an overview of how to configure the source and sink steps in this type of pipeline:

  • Source steps overview: 
    • Specify your model connection details.
    • See Step 6 for the source steps.
  • Sink steps overview: 
    • Specify the destination for the model data transfer. This can be an external system, Anaplan dataset, or model. 
    • See Step 7 for the sink steps.
    • To select a model as both the source and sink, see the Model as a source and sink row below in this table.
Model as a sink

When you set an Anaplan model as a sink, data is transferred from the pipeline into the model.

Use the steps in ‌the Anaplan models as a pipeline sink section.

Here’s an overview of how to configure the source and sink steps in this type of pipeline:

  • Source steps overview: 
    • Specify the source data that’ll be transferred to the model. This can be an external system, Anaplan dataset, or model.
    • See Step 6 for the source steps.
    • To select a model as both the source and sink, see the Model as a source and sink row below in this table.
  • Sink steps overview: 
    • Specify your model connection details.
    • See Step 7 for the sink steps.
Models as a source and sink

You can set an Anaplan model as both the source and the sink. For the sink, you can either choose another Anaplan model, or a different object within the same model.

This type of pipeline can be used when data from the source model needs to be transformed to match the structure of the sink model, when the same data needs to be copied into multiple sinks, or both.

Here’s an overview of how to configure the source and sink steps in this type of pipeline:

  • Source steps: To use an Anaplan model as a source, see Step 6 in the Anaplan models as a pipeline source section.
  • Sink steps: To use an Anaplan model as a sink, see Step 7 in the Anaplan models as a pipeline sink section.

This section describes how to create a pipeline with an Anaplan model as the data source.

To create a pipeline with an Anaplan model as a source:

  1. Select Data Orchestrator from the top-left navigation menu.
  2. Choose a dataspace from the list.
  3. Select Pipelines from the left-side panel.
  4. Select Create pipeline.
  5. Enter a Name for your pipeline and then select Create.
    You are taken to the pipeline designer view.
  6. Select the Source icon to configure the data source:
    1. Select Anaplan from the Connection type dropdown.
    2. Select Model from the Choose connection dropdown.
    3. Enter a new Label to change the name that displays in the pipeline source node.
    4. Choose a connection method: 
      • Saved connection: From the dropdown, select a previously created connection to an Anaplan model. 
      • Create a new connection: Select the link to create a new connection to a model. In the Create new connection dialog, select the Workspace and Model you want to connect to, enter a Name and Description (optional) for the connection, and then select Done.
    5. Select Source location > Choose Object, and choose a model source object.
      You can select a module, saved view, list, or hierarchy.
    6. Optionally, enable these settings based on the object you selected:
      • Modules: You can enable the Use code when available switch.
      • Saved views: You can enable these switches: Omit Summary and Use code when available.
      • Lists: You can enable the Use code when available switch.
      • Hierarchies: You can enable the Use code when available switch.
  7. Select the Sink icon to configure the target destination:
    1. Select a Connection type from the dropdown.
      You can select an external system (for example S3) or Anaplan.
    2. Select a connection from the Choose Connection dropdown:
      • External system: If you selected an external system as the connection type, select an existing connection.
      • Model or Datasets: If you selected Anaplan as the connection type, select Model or Datasets.
    3. Enter a new Label to change the name that displays in the pipeline sink node.
    4. Complete the remaining fields that display in the Targets panel, based on the connection you selected:
      • External system: See the relevant writeback pipeline page for your external system for more information.
      • Anaplan model: If you choose this, then Anaplan models are both the source and sink in this pipeline. For information on configuring the sink, see Step 7 in the Anaplan models as a pipeline sink section.
      • Anaplan dataset: See Anaplan dataset connections in pipelines for more information.
  8. Select Publish, and then select Run to execute the data transfer.

This section describes how to create a pipeline with an Anaplan model as the sink destination.

To create a pipeline with an Anaplan model as a sink:

  1. Select Data Orchestrator from the top-left navigation menu.
  2. Choose a dataspace from the list.
  3. Select Pipelines from the left-side panel.
  4. Select Create pipeline.
  5. Enter a Name for your pipeline and then select Create.
    You are taken to the pipeline designer view.
  6. Select the Source icon to configure the data source:
    1. Select a Connection type from the dropdown.
      You can select an external system (for example S3) or Anaplan.
    2. Select a connection from the Choose Connection dropdown:
      • External system: If you selected an external system as the connection type, select an existing connection.
      • Model or Datasets: If you selected Anaplan as the connection type, select Model or Datasets.
    3. Enter a new Label to change the name that displays in the pipeline source node.
    4. Complete the fields that display in the Source panel, based on the connection you selected:
      • External system: See the relevant read pipeline page for your external system for more information.
      • Anaplan model: If you choose this, then Anaplan models are both the source and sink in this pipeline. For information on configuring the source, see Step 6 in the Anaplan models as a pipeline source section.
      • Anaplan dataset: See Anaplan dataset connections in pipelines for more information.
  7. Select the Sink icon to configure the target destination:
    1. Select Anaplan from the Connection type dropdown.
    2. Select Model from the Choose connection dropdown.
    3. Enter a new Label to change the name that displays in the pipeline sink node.
    4. Choose a connection method: 
      • Saved connection: From the dropdown, select a previously created connection to an Anaplan model. 
      • Create a new connection: Select the link to create a new connection to a model. In the Create new connection dialog, select the Workspace and Model you want to connect to, enter a Name and Description (optional) for the connection, and then select Done.
    5. Select Source location > Choose Object, and choose a model target object.
      You can select a module, saved view, list, or hierarchy.
    6. Select Target mapping > Mapping, and map the source values to the target values.
    7. If you selected a hierarchy, you can select the Balance hierarchy checkbox.
      For more information, see the Balanced vs. unbalanced hierarchies page.
    8. Select a Match option for the target object you selected.
      See the Match options section below.
    9. Select an Update type: 
      • Upsert: Updates existing rows and adds new rows if needed.
      • Replace: Replaces all existing data with the new data being extracted, and overwrites any previous data.
  8. Select Publish, and then select Run to execute the data transfer.

When the pipeline data is pushed to the target model, the match option determines how to match the items in the target model object with the data in the pipeline.

Use this table to determine which match option to select for the model target object. If you selected a list, the match options differ depending on if you selected a standard list or numbered list.

TargetMatch options
Modules
  • Use Default: Uses Anaplan's internal lookup.
  • Match on Name: Looks up items by name.
  • Match on Code: Looks up items by code.
Standard list
  • Use Default: Items are matched by name, and the name is the required column.
  • Match on Code: Items are matched by code. The code is required and the name is optional.
Numbered list

No match options available. 

The items are always matched by code. The code is required and the name can't be mapped.

Hierarchy

The match option you select applies to every level in the hierarchy.

  • Use Default: The name is required on standard levels, and the code is required on numbered levels.
  • Match on Code: The code is required on every level.