{{ transformations:callwithanothertableaction.png}}
====== CALL WITH ANOTHER TABLE ======
Category: Workflow / Internal \\

\\ 
=====Description=====
This action calls another module or project, passes another table into the module/project, and can append the results.

\\
=====Use cases=====
This action can be used to build data quality verification pipelines and can be used for custom reusable data quality checks.

Multiple //Call with another table// actions can be chained one after another and/or chained with the [[transformations:verify|Verify data in another table]] action.

\\ 
=====Action settings=====
^Setting^Description^
|Module/Project to run<sup>*</sup>|Select whether to call a module (within the current project), or an external project (.morph file), then select the\\ module, or browse to the project file.|
|Pass table|Select another table in the current project to pass into the called module/project.|
|Return table|Select the table from the called module/project to return to the //Call with another table// action's dataset.|
|Append the returned dataset...|Check this option //on// to append the returned dataset to the input dataset of the //Call with another table// action.|
|Assign parameters|If values will be passed into the called module/project via parameters, select the parameter name to use,\\ and the value<sup>*</sup> being passed in.|
<sup>*</sup> Setting can be specified using a [[:parameters|parameter]].\\

\\ 
=====Remarks=====
The called module must use the [[transformations:input|Input]] action to receive the dataset passed by the "Call with another table" action.

When using the [[transformations:input|Input]] action in the called module or project, you can use the "Populate automatically" button to import the table being passed by the //Call with another table// to use as test data to build the rest of the module/project.

\\ 
=====Examples=====
Calling a module (or project) with passing in another table via the [[transformations:input|Input]] action.  Parameters are optional.  A dataset is not being returned to the called module (or project).
{{  transformations:call_another_table_illus5.png?550  }}
\\ \\ \\ 
Calling a module (or project) with passing in another table via the [[transformations:input|Input]] action.  Parameters are optional.  A dataset is returned to the called module (or project).
{{  transformations:call_another_table_illus6.png?550  }}

\\ 

=====Community examples=====
  * [[https://community.easymorph.com/t/call-with-another-table-action/6054/4|Call with another table Action]] ([[https://community.easymorph.com/uploads/short-url/60CfdiRFT6nvh5NchtIYHWA7rHX.morph|Project]]; Module: //Main//; Group: //Tab 1//; Table: //Data quality checks//; Action positions: //1// and //2//)

\\
=====See also=====
  * [[transformations:call|Call another module/project]]
  * [[transformations:iteratetable|Iterate table]]
  * [[transformations:input|Input]]
  * [[transformations:verify|Verify data in another table]]
