Using the Dynamics 365 for Sales Delete Snap with expressions from upstream Snaps

This example demonstrates how to create records in Dynamics 365 for Sales from a CSV file and then delete them using object IDs passed from upstream Snaps.

Download this pipeline.
  1. Add a File Reader and CSV Parser Snap to read the source CSV file, then add a Head Snap to select the first five rows.

    File read for CSV data


    Head Snap limiting records

  2. Add a Mapper Snap to map the account ID headers in the CSV file to the corresponding headers in the Dynamics 365 for Sales table.

    Mapper Snap for expressions upstream

  3. Add a Dynamics 365 for Sales Create Snap to insert the mapped data into the table.

    Create Snap adding data from CSV

  4. Add a second Mapper Snap to supply the account IDs to be deleted to the Delete Snap.

    Second Mapper Snap for delete

  5. Add a Dynamics 365 for Sales Delete Snap and run the pipeline to delete the records.

    Delete Snap with expressions from upstream

To reuse this pipeline in your environment:

  1. Download and import the pipeline into SnapLogic.
  2. Configure Snap accounts as applicable.
  3. Provide pipeline parameters as applicable.