Microsoft Dynamics AX Search [Deprecated]

On this Page

Snap type:Read
Description:

A Snap that searches records from Dynamics AX instance (using identifiers such as Company, Object Type, and so on) based on specified search queries.

ETL Transformations & Data Flow

This Snap enables the following ETL operations/flows:

Search and extract records from a Dynamics AX instance with conditions in the Snap configuration as well as input documents, and feed the records to the downstream Snaps.

Input & Output

  • InputThis Snap can have an upstream Snap that can pass a document output view such as Structure or JSON Generator.

  • Output: This Snap has one Document output view that passes the records searched to the downstream Snaps.
Prerequisites:
  1. A Dynamics AX 2012 instance that can be accessed through NTLM by the JCC node.
  2. An enhanced integration inbound port that has one or more find or findKeys operations set up.
Limitations and Known Issues
  • Works in Ultra Task Pipelines.
  • To read a large data sets, you can first get all the keys of records with Fetch keys only property enabled on the Snap settings, and loop through the keys. Use the JSON Splitter Snap to get the list of keys and then read the actual records with Read Snap.
Configurations:

Account & Access

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

Views

InputThis Snap has at most 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:None at the moment.

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.

Company

The company name on which to perform the search operation. The company should be defined on the AX instance side. The property can be provided through user input or pipeline parameters.

Example: Snaplogic

Default value: [None] 

AIF endpoint

Required. URI of the inbound port. You may find the information at the Dynamics AX instance: System administration > Setup > Services and Application Integration Framework > Inbound ports > [Your port name] > URI.

Example:

Default value: [None] 

Object type

Required. The object type on which to perform the search operation. The value of the property depends on the object types contained in the target inbound port.

Example: Customer

Default value: [None] 

Fetch keys only

If enabled, only key of the searched record is returned.

Default value: Not selected 

Dynamics AX Query Table

The table defines zero or more query criterias. If no criteria is given, the Snap fetches all of the records available. For multiple criterias with  the same Query field, they will be connected by "OR". For multiple criterias with a different Query field, they will be connected by "AND".

Data source

The name of the Dynamics AX datasource to query. For example, to query for Customers data type, enter CustTable. For the table references, refer to C Tables.

Example: CustTable

Default value: [None] 

Query field

Field to which the search condition is related. The field should belong to the data source above. For the fields, refer to C Tables .

Example: AccountNum (For table CustTable)

Default value: [None] 

Query operator

Query operator for the search condition.

  • GreaterOrEqual: Extract any records whose value in Query field is greater than or equals to the value specified in Value.
  • LessOrEqual: Extract any records whose value in Query field is less than or equals to the value specified in Value.
  • Equal: Extract any records whose value in Query field is equals to the value specified in Value.
  • NotEqual: Extract any records whose value in Query field is not equals to the value specified in Value.
  • Greater: Extract any records whose value in Query field is greater than the value specified in Value.
  • Less: Extract any records whose value in Query field is less than the value specified in Value.
  • Range: Extract any records whose value in Query field is in the range specified in Lower bound and Upper bound. Boundaries are inclusive.

Example: Equal

Default value: LesserOrEqual

Value/Lower bound

Criteria to use when evaluating which records to return. Lower bound is applicable for the Range operator and will act as a inclusive lower bound. The property accepts expressions. It can be set from the input document as well as pipeline parameters. The property is reflecting "Value 1" in AIF Query Criteria.

Example: BRMF-000001

Default value: [None] 

Upper bound

The inclusive upper bound for the Range operator. The value is picked up only when Query operator is set to Range. The property accepts expressions. It can be set from the input document as well as pipeline parameters.

Example: BRMF-000004

Default value: [None] 

Basic Use Case



 Basic Use Case - 1 - Search Customer

The following pipeline describes how the Snap functions as a standalone Snap in a pipeline:

The pipeline is consisted by a Mapper and a Search snap. It will search for the record from CustTable with AccountNum in range defined in the Mapper. 



The output generated by the pipeline will be:


The exported pipeline is available in the Downloads section below. 

 Basic Use Case - 2 - Search with Company name and Query operator selected as Range

Below is a sample pipeline where the search criteria is Company name and the query operator is Range:

The Dynamics AX Search Snap is configured as:


The output is a list of all the records within the specified range and all their corresponding values. A preview of the output:


The output will be different if Fetch keys only property is enabled. In this case only key values will be retrieved and displayed. A preview of the output in this case:

Typical Snap Configurations


Key configuration of the Snap lies in how the values are passed. The values can be passed:

  • Without Expressions

Values are passed directly into the Snap.

  • With Expressions
    • Using Pipeline parameters: Values are passed as pipeline parameters. Pipeline parameters to be applied can be selected by enabling the checkbox under the Capture column.

 


Advanced Use Case


The following describes a pipeline with a broader business logic involving multiple ETL transformations. It shows how, in an enterprise environment, Create, Read, Search and Delete functionalities can typically be used. The pipeline download link is below.  

This pipeline moves records from a Salesforce instance to the Dynamics AX instance. The records are created, searched and read for the required IDs and deleted as needed.

The ETL Transformations:

  1. Extract: The Salesforce Read Snap retrieves the records from an object type from the Salesforce instance.
  2. Transform: The Mapper Snap maps the records from the Salesforce object to the Dynamics AX instance.
  3. Load:The Dynamics AX Create Snap creates the records on the AX instance.

    The pipeline further uses:

    • The Mapper Snap maps the records to be searched from an Object type.
    • The Dynamics AX Search Snap searches all the records.
    • The JSON Splitter Snap splits the the records based upon the field names.
    • The Dynamics AX Read Snap reads the records based on the given fields and they are retrieved from the bottom using the Tail Snap.
    • The Mapper Snap maps the records to be deleted using the Dynamics AX Delete Snap.

The exported pipeline is available in the Downloads section below.


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.


 


Snap Pack History

 Click to view/expand
ReleaseSnap Pack VersionDateTypeUpdates

February 2024

main25112

 

Stable

Updated and certified against the current SnapLogic Platform release.

August 2023main22460 StableUpdated and certified against the current SnapLogic Platform release.

May 2023

main21015 

Stable

Upgraded with the latest SnapLogic Platform release.

February 2023main19844 StableUpgraded with the latest SnapLogic Platform release.
November 2022main18944 StableUpgraded with the latest SnapLogic Platform release.
August 2022main17386 StableUpgraded with the latest SnapLogic Platform release.
4.29main15993StableUpgraded with the latest SnapLogic Platform release.
4.28main14627 StableUpgraded with the latest SnapLogic Platform release.

4.27

main12833

 

Stable

Upgraded with the latest SnapLogic Platform release.
4.26main11181 StableUpgraded with the latest SnapLogic Platform release.
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.21 Patch421patches5851 Latest

Fixed an issue in the Microsoft Dynamics AX Execute Snap that fails when using the Apache HTTPComponents library API if the request XML has Unicode characters. 

4.21snapsmrc542

 

StableUpgraded with the latest SnapLogic Platform release.
4.20 Patch msdynamicsax8763 Latest

Fixed the Microsoft Dynamics AX Execute Snap to use the correct header list for returning the HTTP response code.

4.20snapsmrc535
 
StableUpgraded with the latest SnapLogic Platform release.
4.19 Patch msdynamicsax8376 Latest

The MS Dynamics AX Snaps have a Library API field. When the selected value is the non-default HTTP Components, there was a breaking change in the structure of the output response document between 4.19 GA version (snapsmrc528) and the latest patch version (msdynamicsax8376). 

We recommend that if you want to use the non-default (non-CXF) value for Library API, then you must use this latest patch version as subsequent GA releases may result in Pipeline executions failing. 

If your current or new Pipelines use CXF as the Library API value, or do not handle SOAP response bodies greater than 1000 lines, or do not rely on NTLM authentication, then you can continue using your existing Snap Pack version (stable distribution – snapsmrc528).

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.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.11snapsmrc465
 
Stable

Introduced the MS Dynamics AX Snap Pack for this release with the Dynamics AX NTLM account type and includes the Snaps, Dynamics AX Create, Dynamics AX Read, Dynamics AX Delete, Dynamics AX Execute, Dynamics AX Update and Dynamics AX Search.