繁体   English   中英

使用Mule ESB更新Netsuite中的员工

[英]Update employee in Netsuite with Mule ESB

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

将部门添加到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>

您绝对可以使用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]" />

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM