Oracle Migration Tool On Demand Guide > Migrating Cascading Picklists > Migrating Cascading Picklists >

Updating or Inserting a Cascading Picklist (Upsert)


This topic describes how to update a specific cascading picklist (if it exists), or insert that cascading picklist (if it does not exist) on your Oracle CRM On Demand environment (customer test environment or production). For the purposes of the Oracle Migration Tool On Demand client, this is known as an Upsert operation. This operation is specified using the Upsert command.

About the Upsert Operation

The Upsert command inserts or updates a cascading picklist based on the <ParentPicklist> and <RelatedPicklist> values. If a cascading picklist already exists with the same <ParentPicklist> and <RelatedPicklist> values, then an update occurs, otherwise, a new cascading picklist is inserted.

An Upsert operation on a cascading picklist fails if the following conditions occur:

  • The parent picklist is the same as the related picklist because looping cascades are not allowed.
  • The parent or related picklist references a field that does not exist on the target system.
  • The parent or related picklist references a field that is not of type Picklist.
  • The related picklist references a parent picklist that is already referenced by another related picklist.

NOTE:  Related picklist values override the existing picklist values during an Upsert operation.

Syntax

The following is the syntax for using the Oracle Migration Tool On Demand client to update a specific cascading picklist (if it exists) or insert the cascading picklist (if it does not exist):

migrationtool -u UserID -s ServerURL Upsert CascadingPicklist CascadingPicklistXML 

where:

  • UserID is the user sign-in ID that has the appropriate privileges to run the Oracle Migration Tool On Demand client commands.
  • ServerURL is the URL for the Oracle CRM On Demand server where your company resides.
  • CascadingPicklistXML is the fully qualified path name of the cascading picklist XML file, for example:

    C:\My Files\My CascadingPicklist.xml

The Oracle Migration Tool On Demand client requests your Oracle CRM On Demand password, which can be redirected (using the pipe command) to the client program from standard input; that is, from a file, from the command line, or from another program.

Example of Updating or Inserting a Cascading Picklist

The following is an example of updating a specific cascading picklist (if it exists) or inserting that cascading picklist (if it does not exist) in your Oracle CRM On Demand server:

migrationtool -u UserID -s ServerURL Upsert CascadingPicklist "C:\My Files\My CascadingPicklist.xml"

NOTE:  Quotation marks are required only if the path or file name contains spaces.

Oracle Migration Tool On Demand Guide, Release 37 Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices.