Skip to content
Ask the community about this page

SQL Task Actions in Data Enrichment

In this article, you will read about creating SQL task actions in Data Enrichment. A SQL task action is a versatile way to make it easier to work with table data. Actions can be used to validate, backup or modify data. They can also be added as a button in the editing area or programmed automatically execute when the table is saved.

Create your first action

Here are steps to create a basic validation action:

  1. Open the table you want to validate in Data Enrichment. Click on Table Designer in the navigation ribbon.
  2. Click Actions.
  3. Select the Add dropdown and click on SQL Task.

SQL Task Actions in Data Enrichment — screenshot 1

  1. Display name: Demo SQL Task
  2. DB Name: Demo DB (or your preferred Database name)
  3. Set the SQL query to:
update %TableName%  
set __ValidationError = NULL

update %TableName%  
set __ValidationError = 'Below 100.000'  
where [Price] < 100000  

SQL Task Actions in Data Enrichment — screenshot 2

  1. Next, click the Execution tab
  2. Check Automatically run when saving data

SQL Task Actions in Data Enrichment — screenshot 3

  1. Selecting In Parameters allows the user to send custom parameters to the action.
  2. Click Run Action if you want to validate your data immediately.
  3. Click Save Tasks to save your action.

Discussed in the community

Looking for related questions…

Didn't find your answer? Ask the community about this page — questions are answered by Timextender experts, partners and other users.