Описание
Создает нового сотрудника компании в инфраструктуре 1С-Коннект из данных ИС клиента.
Page Properties | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Запрос
Info |
---|
Параметр, выделенный жирным, является обязательным к заполнению! |
Параметр | Тип | Описание | |
---|---|---|---|
Name | Строка(20) | Имя | |
Surname | Строка(20) | + | Фамилия |
SecondaryName | Строка(20) | + | Отчетво |
Адрес эл. почты |
Пример
Code Block | ||
---|---|---|
| ||
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:bot="http://buhphone.com/BotAPI" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:core="http://v8.1c.ru/8.1/data/core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soap:Header/> <soap:Body> <bot:AddEmployee> <bot:Params> <Property name="InfobaseID" xmlns="http://v8.1c.ru/8.1/data/core"> <Value xsi:type="xs:string">72d40000-db99-11e9-0000-ba5e5a7280d8</Value> </Property> <Property name="Name" xmlns="http://v8.1c.ru/8.1/data/core"> <Value xsi:type="xs:string">Иван</Value> </Property> <Property name="Surname" xmlns="http://v8.1c.ru/8.1/data/core"> <Value xsi:type="xs:string">Тургенев</Value> </Property> <Property name="SecondaryName" xmlns="http://v8.1c.ru/8.1/data/core"> <Value xsi:type="xs:string">Сергеевич</Value> </Property> <Property name="Email" xmlns="http://v8.1c.ru/8.1/data/core"> <Value xsi:type="xs:string">mail@mail.com</Value> </Property> </bot:Params> </bot:AddEmployee> </soap:Body> </soap:Envelope> |
Ответ (структура ResultData)
Параметр | Тип | Описание |
---|---|---|
EmployeeID | Идентификатор вновь добавленного сотрудника |
Пример ответа
Code Block | ||
---|---|---|
| ||
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> <soap:Body> <m:AddEmployeeResponse xmlns:m="http://buhphone.com/BotAPI"> <m:return xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Property name="ResultCode" xmlns="http://v8.1c.ru/8.1/data/core"> <Value xsi:type="xs:string">SUCCESS</Value> </Property> <Property name="ResultData" xmlns="http://v8.1c.ru/8.1/data/core"> <Value xsi:type="ValueTable"> <column> <Name>EmployeeID</Name> <ValueType/> </column> <row> <Value xsi:type="xs:string">ff6900000-fb29-0000-bd0a-98f600f3e21f</Value> </row> </Value> </Property> </m:return> </m:AddEmployeeResponse> </soap:Body> </soap:Envelope> |