Forum Discussion

dmiller's avatar
dmiller
Former Employee
8 years ago

Migration Patterns

The following patterns migrate assets from one project to another in the same org. These patterns make use of the SnapLogic Metadata Snaps.

Source: Existing accounts, files, and pipelines within SnapLogic
Target: A second project within SnapLogic
Snaps used: SnapLogic Metadata Snaps, Mapper,

Requirements

  • You must have access to both projects.
  • You will need to define the following pipeline parameters:
    • source_path, in the form of /orgname/projectspace/project
    • target_path, in the form of /orgname/projectspace/project

Migrate Accounts

  • The SnapLogic List Snap gathers the list of accounts in the specified source_path parameter.
  • The SnapLogic Read Snap reads the incoming $path for the accounts.
  • The Mapper Snap maps the target path.
  • The SnapLogic Create Snap writes the accounts to the target location.

Migrate Files

  • The SnapLogic List Snap gathers the list of files in the specified source_path parameter.
  • The Mapper Snap maps the source path to a $source_path field for use in the Read Snap.
  • The SnapLogic Read Snap reads the incoming $path for the files.
  • The SnapLogic Create Snap writes the files to the target location.

Migrate Pipelines

  • The SnapLogic List Snap gathers the list of pipelines in the specified source_path parameter.
  • The SnapLogic Read Snap reads the incoming $path for the pipelines.
  • The Mapper Snap maps the target path.
  • The SnapLogic Create Snap writes the pipelines to the target location.

Pipeline Downloads

9 Replies

  • SL12345's avatar
    SL12345
    New Contributor III

    thank you, that is really what i wanted 🙂 and is it possible to wrap this content into object so from this:

    {
      "CompanyName": "TestCompany",
      "CompanyAddress": "TestAddress",
      "Brand": "BMW",
      "Year": "2020",
      "Fuel": "Petrol"
    }
    ,
    {
      "CompanyName": "TestCompany",
      "CompanyAddress": "TestAddress",
      "Brand": "Jaguar",
      "Year": "2020",
      "Fuel": "Diesel"
    }
    

    create this? Adding “Cars” as header or envelope for body/content?

    {
    	"Cars":
    {
      "CompanyName": "TestCompany",
      "CompanyAddress": "TestAddress",
      "Brand": "BMW",
      "Year": "2020",
      "Fuel": "Petrol"
    }
    ,
    {
      "CompanyName": "TestCompany",
      "CompanyAddress": "TestAddress",
      "Brand": "Jaguar",
      "Year": "2020",
      "Fuel": "Diesel"
    }
    }
    
      • SL12345's avatar
        SL12345
        New Contributor III

        I need to correct my question … every JSON should have header “Cars”

        {
        	"Cars":
        {
          "CompanyName": "TestCompany",
          "CompanyAddress": "TestAddress",
          "Brand": "BMW",
          "Year": "2020",
          "Fuel": "Petrol"
        }
        ,
        {
          "Cars" :
        {
          "CompanyName": "TestCompany",
          "CompanyAddress": "TestAddress",
          "Brand": "Jaguar",
          "Year": "2020",
          "Fuel": "Diesel"
        }
        }