骡子"returnSearchColumns"属性中的网络套件连接器



我在netsuite中创建了一个保存的"items"搜索。

<netsuite:search config-ref="NetSuite__Login_Authentication" searchRecord="ITEM_ADVANCED" bodyFieldsOnly="false" returnSearchColumns="true" doc:name="NetSuite"/>
<json:object-to-json-transformer doc:name="Object to JSON"/>

当"returnSearchColumns"设置为"true"时,将收到以下异常。如果此属性设置为false,则没有异常,但响应缺少选定的列。

java.lang.IllegalArgumentException: No enum constant org.mule.module.netsuite.RecordTypeEnum.ITEM

此外,从netsuite收到了"ConsumerTerator"对象作为响应,并在netsuite连接器后面使用了"object to JSON"转换器。收到的响应是一个项目对象数组。

1) 有没有办法将这个有效负载转换成XML格式?对象到XML和JSON到XML都没有给出完整的XML
2) 如何避免上述非法论点异常?

1)对象到xml应该将所有字段转换为xml,或者您可以尝试类似Dataweave的方法。到底缺了什么?

2) 没有名为"ITEM"的类型。您必须使用此列表中提到的一个:http://mulesoft.github.io/netsuite-connector/6.0.1/java/org/mule/module/netsuite/RecordTypeEnum.html例如"INVENTORY_ITEM"

最新更新