Добавление записей в таблицу


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>