Обновление сотрудника в Netsuite с помощью Mule ESB - PullRequest
3 голосов
/ 16 сентября 2011

Как установить отдел в сотруднике на netsuite с мул ESB?

Ответы [ 2 ]

2 голосов
/ 19 сентября 2011

Добавление отдела в emplloyee выглядит следующим образом

<netsuite: update-record recordType="EMPLOYEE" id="#internalId">
     <netsuite:attributes>
            <netsuite:attribute key="department" value="#[groovy: new com.netsuite.webservices.platform.core_2010_2.RecordRef( com.netsuite.webservices.platform.core_2010_2.types.RecordType.DEPARTMENT,'InternaldepartmentID','ExternalDepartmentID' );]"/>
      </netsuite:attributes>
</netsuite:update-record>
0 голосов
/ 19 сентября 2011

Определенно вы можете использовать NetSuite Cloud Connector для создания РАБОТНИКА.Фрагмент mule-config.xml будет выглядеть примерно так:

<netsuite:add-record recordType="EMPLOYEE">
      <netsuite:attributes>
          <netsuite:attribute key="firstName" value="#[variable:firstName]" />
          <netsuite:attribute key="lastName" value="#[variable:lastName]" />
          <netsuite:attribute key="email" value="#[variable:email]" />
      </netsuite:attributes>
  </netsuite:add-record>

Более подробную информацию о нашем соединителе вы можете найти здесь .

Отделможно установить с помощью обычного атрибута:

<netsuite:attribute key="deparment" value="#[variable:departmentId]" />
...