3

如何使用mule ESB在netsuite上设置员工部门?

4

2 回答 2

2

将部门添加到员工看起来像这样

<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>
于 2011-09-19T14:57:18.607 回答
-1

您绝对可以使用 NetSuite Cloud Connector 来创建 EMPLOYEE。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]" />
于 2011-09-19T14:11:06.997 回答