# Services

| Module             | Type              | Description                                                                                                                                                                         |
| ------------------ | ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ActiveDirectory    | CloseSource       | The CloseSource activity closes the specified source connection                                                                                                                     |
|                    | CloseTarget       | The CloseTarget activity closes the specified target connection                                                                                                                     |
|                    | DeleteRecord      | The DeleteRecord activity deletes the specified target record                                                                                                                       |
|                    | ExecuteStatements | The ExecuteActiveDirectoryStatement activity is used to execute a custom sql statement on a connection                                                                              |
|                    | GetNextRecord     | The GetNextRecord activity fetches the next record from the specified source connection                                                                                             |
|                    | InitializeSource  | The InitializeSource activity initializes a connection for reading data records at run time. Multiple InitializeActiveDirectorySource activites can be included in the workflow.    |
|                    | InitializeTarget  | The InitializeTarget is used for initializing a connection where output records will be saved.  Multiple InitializeActiveDirectoryTarget activites can be included in the workflow. |
|                    | LookupRecord      | The LookupRecord activity fetches a specific record from a source connection                                                                                                        |
|                    | MapRecordFields   | The MapRecordFields activity is used for setting the values of the specified DataFields in a target connection                                                                      |
|                    | SaveRecord        | Saves the specified target record                                                                                                                                                   |
| JSON               | CloseSource       | Closes the specified source connection                                                                                                                                              |
|                    | CloseTarget       | Closes the specified target connection                                                                                                                                              |
|                    | DeleteRecord      | Deletes the specified target record                                                                                                                                                 |
|                    | ExecuteStatements | Executes custom SQL statements on a connection                                                                                                                                      |
|                    | GetNextRecord     | Fetches the next record from the specified source connection                                                                                                                        |
|                    | InitializeSource  | Initializes a connection for reading data records at run time.                                                                                                                      |
|                    | InitializeTarget  | Initializes a connection where output records will be saved.                                                                                                                        |
|                    | LookupRecord      | Fetches a specific record from a source connection                                                                                                                                  |
|                    | MapRecordFields   | Sets the values of the specified DataFields in a target connection                                                                                                                  |
|                    | SaveRecord        | Saves the specified target record                                                                                                                                                   |
| LDAP               | CloseSource       | Closes the specified source connection                                                                                                                                              |
|                    | CloseTarget       | Closes the specified target connection                                                                                                                                              |
|                    | DeleteRecord      | Deletes the specified target record                                                                                                                                                 |
|                    | ExecuteStatements | Executes custom SQL statements on a connection                                                                                                                                      |
|                    | GetNextRecord     | Fetches the next record from the specified source connection                                                                                                                        |
|                    | InitializeSource  | Initializes a connection for reading data records at run time.                                                                                                                      |
|                    | InitializeTarget  | Initializes a connection where output records will be saved.                                                                                                                        |
|                    | LookupRecord      | Fetches a specific record from a source connection                                                                                                                                  |
|                    | MapRecordFields   | Sets the values of the specified DataFields in a target connection                                                                                                                  |
|                    | SaveRecord        | Saves the specified target record                                                                                                                                                   |
| MicrosoftDataverse | CloseSource       | Closes the specified source connection                                                                                                                                              |
|                    | CloseTarget       | Closes the specified target connection                                                                                                                                              |
|                    | DeleteRecord      | Deletes the specified target record                                                                                                                                                 |
|                    | ExecuteStatements | Executes custom SQL statements on a connection                                                                                                                                      |
|                    | GetNextRecord     | Fetches the next record from the specified source connection                                                                                                                        |
|                    | InitializeSource  | Initializes a connection for reading data records at run time.                                                                                                                      |
|                    | InitializeTarget  | Initializes a connection where output records will be saved.                                                                                                                        |
|                    | LookupRecord      | Fetches a specific record from a source connection                                                                                                                                  |
|                    | MapRecordFields   | Sets the values of the specified DataFields in a target connection                                                                                                                  |
|                    | SaveRecord        | Saves the specified target record                                                                                                                                                   |
| OData              | CloseSource       | Closes the specified source connection                                                                                                                                              |
|                    | CloseTarget       | Closes the specified target connection                                                                                                                                              |
|                    | DeleteRecord      | Deletes the specified target record                                                                                                                                                 |
|                    | ExecuteStatements | Execute a custom sql statement on a connection                                                                                                                                      |
|                    | GetNextRecord     | Fetches the next record from the specified source connection                                                                                                                        |
|                    | InitializeSource  | Initializes a connection for reading data records at run time.                                                                                                                      |
|                    | InitializeTarget  | Initializes a connection where output records will be saved.                                                                                                                        |
|                    | LookupRecord      | Fetches a specific record from a source connection                                                                                                                                  |
|                    | MapRecordFields   | Sets the values of the specified DataFields in a target connection                                                                                                                  |
|                    | SaveRecord        | Saves the specified target record                                                                                                                                                   |
| REST               | CloseSource       | The CloseSource activity closes the specified source connection                                                                                                                     |
|                    | GetNextRecord     | The GetNextRecord activity fetches the next record from the specified source connection                                                                                             |
|                    | InitializeSource  | The InitializeSource activity initializes a connection for reading data records at run time. Multiple InitializeRESTSource activites can be included in the workflow.               |
|                    | LookupRecord      | The LookupRecord activity fetches a specific record from a source connection                                                                                                        |
| RSS                | CloseSource       | Closes the specified source connection                                                                                                                                              |
|                    | GetNextRecord     | Fetches the next record from the specified source connection                                                                                                                        |
|                    | InitializeSource  | Initializes a connection for reading data records at run time.                                                                                                                      |
|                    | LookupRecord      | Fetches a specific record from a source connection                                                                                                                                  |
| XML                | CloseSource       | Closes the specified source connection                                                                                                                                              |
|                    | CloseTarget       | Closes the specified target connection                                                                                                                                              |
|                    | DeleteRecord      | Deletes the specified target record                                                                                                                                                 |
|                    | ExecuteStatements | Executes custom SQL statements on a connection                                                                                                                                      |
|                    | GetNextRecord     | Fetches the next record from the specified source connection                                                                                                                        |
|                    | InitializeSource  | Initializes a connection for reading data records at run time.                                                                                                                      |
|                    | InitializeTarget  | Initializes a connection where output records will be saved.                                                                                                                        |
|                    | LookupRecord      | Fetches a specific record from a source connection                                                                                                                                  |
|                    | MapRecordFields   | Sets the values of the specified DataFields in a target connection                                                                                                                  |
|                    | SaveRecord        | Saves the specified target record                                                                                                                                                   |


---

# 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-datasource/services.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.
