# Actions-Execution

The Execution action category contains the following actions in the modules shown below:

<table><thead><tr><th width="165.33333333333331">Module</th><th width="265">Type</th><th>Description</th></tr></thead><tbody><tr><td>Base</td><td>CallWebService</td><td>The CallWebService activity calls a web service</td></tr><tr><td></td><td>CloseActivity</td><td>Closes the specified activity (including any open connections)</td></tr><tr><td></td><td>Delay</td><td>The Delay activity delays the execution of a workflow for a specified amount of time.</td></tr><tr><td></td><td>EndWorkflow</td><td>The EndWorkflow activity ends the current workflow</td></tr><tr><td></td><td>EvaluateCondition</td><td>Evaluates a condition and returns True or False</td></tr><tr><td></td><td>ExecuteConnectorActivity</td><td>Executes a special activity in a connector (not a basic activity contained in BaseData)</td></tr><tr><td></td><td>ExecuteWorkflow</td><td>Executes a workflow and optionally passes the required parameters to it.</td></tr><tr><td></td><td>ExecuteWorkflowActivity</td><td>The ExecuteWorkflowActivity action executes a workflow activity </td></tr><tr><td></td><td>PerformAction</td><td>Performs an action</td></tr><tr><td></td><td>ResetActivityResult</td><td>Resets the execution result of an activity</td></tr><tr><td></td><td>ResetLastResult</td><td>Resets the last execution result</td></tr><tr><td></td><td>SendEmail</td><td>Sends an emal</td></tr><tr><td></td><td>SetValues</td><td>The SetValues activity is used for setting values in the workflow</td></tr><tr><td></td><td>UpdateWorkflowState</td><td>This activity updates the State of the currently running instance of the workflow</td></tr><tr><td></td><td>WriteAuditLogsEntry</td><td>This activity is used for writing entries to the audit logs detail table. The Description and/or Message property is required</td></tr><tr><td></td><td>WriteLogEntry</td><td>This activity is used for writing entries to the log.  Log entries can include Source and Target records/statistics, messages, errors, warnings, etc.</td></tr><tr><td>BaseData</td><td>ClearRecord</td><td>This activity clears the values in a specific record in memory. It does not clear the record from the data source.</td></tr><tr><td></td><td>CloseSource</td><td>Closes the specified source connection</td></tr><tr><td></td><td>CloseTarget</td><td>Closes the specified target connection</td></tr><tr><td></td><td>CommitTransaction</td><td>Optional action to Commit a transaction on the Target and start a new transaction</td></tr><tr><td></td><td>DeleteRecord</td><td>Deletes the specified target record</td></tr><tr><td></td><td>ExecuteSQLScript</td><td>Executes a SQL Script on a data source (Dynamics365, Salesforce, MySQL, Oracle, etc.)</td></tr><tr><td></td><td>ExecuteStatements</td><td>Executes custom SQL statements on a connection</td></tr><tr><td></td><td>ExecuteStoredProcedure</td><td>Executes a stored procedure on a data source. To utilize a stored procedure as a multi-record source, use the InitializeSource activity</td></tr><tr><td></td><td>GetNextRecord</td><td>The GetNextRecord activity loads the next record from the specified Source</td></tr><tr><td></td><td>InitializeSource</td><td>Initializes a connection for reading data records at run time.</td></tr><tr><td></td><td>InitializeSourceFile</td><td>Initializes a Source for reading data records from a file</td></tr><tr><td></td><td>InitializeSourceList</td><td>Initializes a Source for reading data records from a file</td></tr><tr><td></td><td>InitializeTarget</td><td>Initializes a connection for saving output records.</td></tr><tr><td></td><td>InitializeTargetFile</td><td>Initializes a Target for writing data records to a file</td></tr><tr><td></td><td>LookupRecord</td><td>Loads a specific record from a source</td></tr><tr><td></td><td>MapAndSaveRecords</td><td>Maps and saves values to specified DataFields in a target connection</td></tr><tr><td></td><td>MapRecordFields</td><td>Maps values to specified DataFields in a target connection</td></tr><tr><td></td><td>RestartSource</td><td>Restarts a source by re-executing the query and re-reading the records using the GetNextRecord activity</td></tr><tr><td></td><td>RollbackTransaction</td><td>Optional action to Rollback a transaction on the Target and start a new transaction</td></tr><tr><td></td><td>SaveRecord</td><td>Saves the specified target record</td></tr><tr><td>BusinessRules</td><td>EvaluateConditions</td><td>Executes a group of conditions</td></tr><tr><td></td><td>EvaluateDecisionTable</td><td>Defines and executes a decision table</td></tr><tr><td></td><td>ExecuteRuleSet</td><td>Initializes and executes a rule set</td></tr><tr><td></td><td>PerformActions</td><td>Executes a group of actions</td></tr><tr><td>Cache</td><td>LoadSourceRecordsIntoCache</td><td>The LoadSourceRecordsIntoCache action loads source records into the cache. They can be retrieved using the LookupCachedRecord action</td></tr><tr><td></td><td>LookupCachedRecord</td><td>Loads a record from the cache</td></tr><tr><td></td><td>SaveCustomValueInCache</td><td>Saves a custom value in the cache</td></tr><tr><td></td><td>SaveKeyValueInCache</td><td>DataSource entity record keys are automatically saved in cache when that option is set. This action allows you to save a key in cache at any time and to retrieve it using the LookupCachedKeyValue action</td></tr><tr><td></td><td>SaveRecordInCache</td><td>Saves a record in cache</td></tr><tr><td>Custom</td><td>Composite</td><td>Executes selected defined or pre-defined actions in sequence</td></tr><tr><td></td><td>Expression</td><td>The Expression action executes a simple expression (javascript). The expression does NOT return a value</td></tr><tr><td></td><td>Function</td><td>Executes a .Net custom function and does NOT returns a value.</td></tr><tr><td></td><td>Script</td><td>The Script field action executes a script (javascript). The script does not return a value.</td></tr><tr><td>DataMigration</td><td>MigrateData</td><td>Migrates, replicates or synchronizes data from one or more source data sources to one or more target data sources</td></tr><tr><td>Dialogs</td><td>DisplayMessage</td><td>Displays a message</td></tr><tr><td></td><td>EditRecord</td><td>Displays data records for viewing and editing</td></tr><tr><td></td><td>EditWorkflowValues</td><td>The ViewRuntimeValues activity is used for viewing selected values at run time.</td></tr><tr><td></td><td>PromptForValue</td><td>Prompts the user for a value</td></tr><tr><td></td><td>ViewRuntimeRecords</td><td>Displays data records at runtime</td></tr><tr><td></td><td>ViewRuntimeStatistics</td><td>The ViewRuntimeStatistics activity is used for viewing DataManager statistics at run time</td></tr><tr><td></td><td>ViewRuntimeValues</td><td>The ViewRuntimeValues activity is used for viewing selected values at run time.</td></tr><tr><td></td><td></td><td></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.appstrategy.com/apprules-r-documentation/platform/platform-features/actions/action-categories/actions-execution.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
