# DataConnection

## Шаблоны DataConnection <a href="#template_data_connection" id="template_data_connection"></a>

```xml
<DataConnection SourceDataConnection="" GetScalar="">
  <Fields>
    <Field Name="" />
  </Fields>
</DataConnection>
```

```xml
<DataConnection SourceDataConnection="" SourceSqlQuery="" GetScalar="">
  <Fields>
    <Field Name="" />
  </Fields>
</DataConnection>
```

```xml
<DataConnection SourceDataConnection="" GetScalar="">
  <SourceQuery Name="">
    <Fields>
      <Field Name="" />
      <Field Name="" />
    </Fields>
  </SourceQuery>
  <SourceQuery Name="">
    <Fields>
      <Field Name="" />
      <Field Name="" />
      <Field Name="" />
    </Fields>
  </SourceQuery>
</DataConnection>
```

#### Атрибуты DataConnection <a href="#attributes_data_connection" id="attributes_data_connection"></a>

<table data-header-hidden><thead><tr><th align="center"></th><th width="431.3333333333333"></th></tr></thead><tbody><tr><td align="center">GetScalar</td><td><p>Признак, определяющий результат соединения с данными.</p><p></p><p>Необязательный атрибут. Ожидается логическое значение.</p><p></p><p>Если атрибут <code>GetScalar</code> отсутствует или значение атрибута False, то значением будет массив строк соединения.</p><p>Если значение - True, то значение - первый элемент первой строки или NULL, если в соединении с данными отсутствуют строки.</p></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://wfsys.gitbook.io/workflow-forms-syntax/workflow_forms/values/data_connection.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.
