如何使用mule ESB在netsuite上设置员工部门?
答案 0 :(得分: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>
答案 1 :(得分:-1)
您绝对可以使用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>
您可以找到有关我们的连接器here的更多信息。
可以使用常规属性设置部门:
<netsuite:attribute key="deparment" value="#[variable:departmentId]" />