DEPRECATED | Dynamics CRM Delete

On this page

Snap type:Write
Description:

This Snap provides functionality to delete objects in Microsoft Dynamics CRM.

ETL Transformations & Data Flow

This Snap enables the following ETL operations/flows:

  1. Extract data from either directly in the Snap configuration or from the upstream Snap containing the data for deleting the Dynamics CRM object
  2. Transform the input document into a SnapLogic friendly JSON Document if using an upstream Snap
  3. Load the data into the Dynamics CRM Delete Snap to delete the CRM object.

Input & Output

  • InputThe ID of the Dynamics CRM Object to be deleted. The information can either be provided directly in the Snap or in the upstream Snaps.
  • Output: A document with the result set. If the deletion is successful, then the output document will contains the Guid of the deleted CRM object.
  • Expected upstream Snaps: None
  • Expected downstream Snaps: None
Prerequisites:[None]
Limitations and Known Issues:
  • Works in Ultra Task Pipelines.
  • When deleting more than one CRM Object in batches, the Batch Size ranges from 1 to 1000. This is a limitation set by Microsoft Dynamics CRM.
Configurations:

Account and Access

This Snap uses account references created on the Accounts page of SnapLogic Manager to handle access to this endpoint. See Dynamics CRM Account for information on setting up this type of account.


Views

InputThis Snap has exactly one document input view.
OutputThis Snap has exactly one document output view.
ErrorThis Snap has at most one document error view and produces zero or more documents in the view.
Troubleshooting:

For trouble shooting purpose, try performing a similar operation directly on the Dynamics CRM User Interface and collect the necessary data. Compare the data used in the User Interface with the SnapLogic pipelines to see if there are any inconsistencies.

In order to view the Object ID of the Dynamics CRM Object from the User Interface, the recommended approach is to install a browser plug-in. The plug-in will be available in the browser's Developer tools console. Contact your administrator for the preferred plug-in.

Settings

Label

Required. The name for the Snap. You can modify this to be more specific, especially if you have more than one of the same Snap in your pipeline.

Object type

Required. Microsoft Dynamics CRM Object Type. For example, account.

Default Value: account

IDRequired. Guid of the Dynamics CRM Object. This field is suggestible.
Batch Size

Required. Number of records processed in each request. Batch size range is from 1 to 1000.

Default Value: 200

Snap execution

Select one of the three modes in which the Snap executes. Available options are:

  • Validate & Execute: Performs limited execution of the Snap, and generates a data preview during Pipeline validation. Subsequently, performs full execution of the Snap (unlimited records) during Pipeline runtime.
  • Execute only: Performs full execution of the Snap during Pipeline execution without generating preview data.
  • Disabled: Disables the Snap and all Snaps that are downstream from it.


Basic Use Case



Typical Snap Configuration


The key Snap configuration for the CRM Delete Snap are:

  • Without Expression

The Snap performs a Delete function using a manually provided ID.



  • With Expression
    • Query form the Upstream

The Mapper Snap passes the values to the Snap for performing the Delete function.

 


Another use case where the expression enabled:

 Delete the records by providing the ID with expression enabled

In this pipeline, the CSV file is read and parsed using the File Reader and CSV Parser Snaps. The Head Snap passes ten documents to be created on an object on the CRM via the upstream, Mapper Snap and CRM Create Snaps respectively. The Mapper Snap maps the values to be deleted from the object type using the CRM Delete Snap.

The CSV output document to be mapped to the CRM Create Snap for the records to be created:

The Head Snap passed ten documents only to the Mapper Snap.

The Mapper Snap passes the records (ten) under SKU_ID to the mapped under the field name $name.


The output preview from the Mapper Snap:


The Dynamic CRM Create Snap creates the records on the object type, account:


The output preview from the CRM Create Snap:


The Mapper Snap maps the records from the object account, to be passed to the target field, $Id.

The output preview from the Mapper Snap:


The Dynamics CRM Delete Snap deletes the records under $Id with ID expression enabled:



    • Pipeline Parameters

The Pipeline Parameters as set for the required statement to the CRM Delete Snap.





Advanced Use Case


The following describes a pipeline, with a broader business logic involving multiple ETL transformations, that shows how typically in an enterprise environment, CRM Delete functionality is used.  Pipeline download link is available below.

This pipeline reads and moves files from the NetSuite to the CRM instance and then delete the created ones.

  1. Extract: The NetSuite Search Snap searches and retrieves the records.

  2. Transform: The Mapper Snap passes the search parameters for the NetSuite Search Snap.

  3. Transform: The JSON Splitter splits the searched records based on an internal ID.

  4. Transform: The Head Snap lists the configured number of documents(here 5 documents).
  5. Transform: The second Mapper Snap maps the input schema to the target fields on the CRM instance. 

  6. Transform: The third Mapper Snap passes the parameters to the Delete Snap for the records to be deleted from the CRM instance.

  7. Load: The CRM Create Snap creates the entities on the object type.

  8. Load: The CRM Delete Snap deletes the required documents as configured.



Downloads

Important steps to successfully reuse Pipelines

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

See Also

Snap Pack History

 Click to view/expand
ReleaseSnap Pack VersionDateTypeUpdates
4.29main15993 StableUpgraded with the latest SnapLogic Platform release.
4.28main14627 StableUpgraded with the latest SnapLogic Platform release.
4.27main12833 StableUpgraded with the latest SnapLogic Platform release.
4.26main11181 StableUpgraded with the latest SnapLogic Platform release.
4.25 Patch425patches10880 LatestImproved the Dynamics 365 for Sales Upsert Snap by caching the parameter lookups values.
4.25425patches9813 LatestFixed an issue with Dynamics CRM Search Snap where the Snap returns duplicate records when reading results from multiple pages.
4.25main9554
 
Stable

Upgraded with the latest SnapLogic Platform release.

4.24main8556
StableUpgraded with the latest SnapLogic Platform release.
4.23main7430
 
StableUpgraded with the latest SnapLogic Platform release.
4.22main6403
 
StableUpgraded with the latest SnapLogic Platform release.
4.21snapsmrc542

 

StableUpgraded with the latest SnapLogic Platform release.
4.20snapsmrc535
 
StableUpgraded with the latest SnapLogic Platform release.
4.19 Patch dynamicscrm8531 Latest
  • Fixes the following:

    • Dynamics CRM Upsert Snap to process GUID format.
    • Dynamics CRM Search Snap to parse additional object schema types.
4.19snaprsmrc528
 
StableUpgraded with the latest SnapLogic Platform release.
4.18snapsmrc523
 
StableUpgraded with the latest SnapLogic Platform release.
4.17ALL7402
 
Latest

Pushed automatic rebuild of the latest version of each Snap Pack to SnapLogic UAT and Elastic servers.

4.17snapsmrc515
 
Latest

Added the Snap Execution field to all Standard-mode Snaps. In some Snaps, this field replaces the existing Execute during preview check box.

4.16snapsmrc508
 
StableUpgraded with the latest SnapLogic Platform release.
4.15snapsmrc500
 
StableUpgraded with the latest SnapLogic Platform release.

4.14 Patch 

dynamicscrm5971

 Latest

Fixed an issue with the Upsert Snap wherein duplicate records were being created because the Snap was ignoring certain query fields.

4.14 Patch 

dynamicscrm5857

 Latest

Fixed an issue with Dynamics CRM Create operation for Owner id tags.

4.14 Patch dynamicscrm5753 Latest

Fixed an issue with Owner ID tags request process in the Dynamics CRM Create Snap.

4.14 Patch dynamicscrm5720 Latest

Enhanced the Dynamics CRM Read Snap with the following to optimize Pipeline execution time and data integrity:

  • Reduced cache time for Read suggestions to five minutes.
  • Removed cache for Entity Reads.
4.14snapsmrc490
 
StableUpgraded with the latest SnapLogic Platform release.
4.13

snapsmrc486

 
StableUpgraded with the latest SnapLogic Platform release.
4.12

snapsmrc480

 
StableUpgraded with the latest SnapLogic Platform release.
4.11 Patch dynamicscrm4359 Latest

Added support for Customer data type as an input parameter for the Dynamics CRM Snaps.

4.11 Patch dynamicscrm4286 Latest

Dynamics CRM Upsert - Added support for processing Dynamics CRM data types in the CRM Upsert Snap.

4.11snapsmrc465
 
StableUpgraded with the latest SnapLogic Platform release.
4.10 Patch dynamicscrm4185 

Support for Guid datatype as input parameter: Resolved an issue with Dynamics CRM Snaps that fails when record ID is specified.

4.10snapsmrc414

 


  • Introduced the CRM Upsert Snap in this release.
  • Performance enhancements for Microsoft Dynamics CRM Create.
4.9 Patchdynamicscrm3328

Addressed the issue: Dynamics CRM Create does not support some datatypes

4.9 Patchdynamicscrm3080

Addressed an issue with Dynamics CRM Read and Search Snap not converting OptionSetValues correctly.

4.9snapsmrc405 
  • This Snap Pack introduced in this release with the following Snaps:
    • Create
    • Update
    • Delete
    • Read
    • Search