Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

On this Page

Table of Contents
maxLevel2
excludeOlder Versions|Additional Resources|Related Links|Related Information

Scenario

I want to take some information from Salesforce.com and combine it with the caller incident information from ServiceNow, then write it to a file and a database.
This example assumes that data is stored under different column names in the different sources and resulting database, so column mapping will be needed.

...

  1. Add and configure a ServiceNow Query Snap to query for incident information tracked in ServiceNow.
    • You will need to supply the ServiceNow Instance, Username, Password, and Table name.
    • Set Action to getRecords.
    • Set the Get records Query field to a query to find the appropriate records.
  2. Add and configure a Join Snap that connects to the right of both existing Snaps. This will combine the data from the two sources.
    • Leave Join type to Inner.
    • Set Left path to a value from the Salesforce.com data, such as $Name.
    • Set Right path to an appropriate from the ServiceNow data, such as $caller_id.
    • Leave Sorted streams as Unsorted.
  3. Add and configure a Structure Snap off of the Join Snap to map to the data structure of one of the final destination.
    • Set Pass through to [None] - new map.

    • Set up the following mapping table :

      Source pathOperationTarget Path
      $numbermove$IncidentID
      $urgencymove$Urgency
      $Namemove$Name
      $Phonemove$Phone


  4. Add and configure a Copy Snap to allow you to send the combined data to multiple destinations.
    • On the Views page, add a second output view.
  5. Add a CSV Format Snap off the top output connector and keep the default configuration. 
  6. Add and configure a File Writer Snap off of the CSV Format Snap.
    • Set the File name to a CSV file to be saved to the SnapLogic database.
  7. Add and configure a Structure Snap off the bottom output connector. This will be used to map the data to the database data structure.
    • Set Pass through to [None] - new map.

    • Set up the following mapping table :

      Source pathOperationTarget Path
      $Namemove$Name
      $Phonemove$Phone
      $IncidentIDmove$Incident
      $Urgencymove$Urgency


  8. Add and configure a SQL Server Insert Snap off of the Structure Snap.
    • You will need to supply the SQL Server Hostname, Port Number, Database name, Username, Password and Table name.
    • Leave all remaining default values.

...