Mule ESBを使用してnetsuiteの従業員に部門を設定するには?
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 に答える