Добавление записей в таблицу
URL: components/Services/APIService.asmx
Метод: InsertDirectoryRecords
Передаваемые параметры
| Параметр | Описание |
|---|---|
ASPNETSessionId | Идентификатор сессии |
directoryTemplateId* | Идентификатор таблицы |
projectRecords | |
FieldWrapper | Массив реквизитов fields |
FieldName | Название реквизита |
FieldId | Идентификатор реквизита |
FieldVal | Значение реквизита Дата вставляется в формате yyyy-MM-dd HH:mm:ssZ |
FieldType | Тип реквизита |
Record | Запись таблицы |
RecordId | Идентификатор записи |
RecordName | Название |
RecordParentId | Идентификатор родительского объекта |
Fields | Дополнительные поля записи |
Date | Системная дата Формат даты: yyyy-MM-dd HH:mm:ssZ |
RecordProjectRelation | Связи |
<?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"> <soapenv:Header/> <soapenv:Body> <tem:InsertDirectoryRecords> <tem:ASPNETSessionId>string</tem:ASPNETSessionId> <tem:directoryTemplateId>string</tem:directoryTemplateId> <tem:projectRecords> <tem:ProjectRecordWrapper> <tem:ProjectId>string</tem:ProjectId> <tem:Fields> <tem:FieldWrapper> <tem:FieldName>string</tem:FieldName> <tem:FieldId>string</tem:FieldId> <tem:FieldVal>string</tem:FieldVal> <tem:FieldType>string</tem:FieldType> </tem:FieldWrapper> </tem:Fields> <tem:Record> <tem:RecordId>string</tem:RecordId> <tem:RecordName>string</tem:RecordName> <tem:RecordParentId>string</tem:RecordParentId> <tem:Fields> <tem:FieldWrapper> <tem:FieldName>string</tem:FieldName> <tem:FieldId>string</tem:FieldId> <tem:FieldVal>string</tem:FieldVal> <tem:FieldType>string</tem:FieldType> </tem:FieldWrapper> </tem:Fields> <tem:Date>dateTime</tem:Date> <tem:RecordProjectRelation> <tem:ProjectId>string</tem:ProjectId> <tem:DateType>string</tem:DateType> <tem:Delay>int</tem:Delay> </tem:RecordProjectRelation> </tem:Record> </tem:ProjectRecordWrapper> </tem:projectRecords> </tem:InsertDirectoryRecords> </soapenv:Body> </soapenv:Envelope>
Возвращаемый параметр
| Параметр | Описание |
|---|---|
InsertDirectoryRecordsResult | Результат выполнения метода |
<?xml version="1.0" encoding="utf-8"?> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <InsertDirectoryRecordsResponse xmlns="http://tempuri.org/"> <InsertDirectoryRecordsResult>string</InsertDirectoryRecordsResult> </InsertDirectoryRecordsResponse> </s:Body> </s:Envelope>