Dataweave Escape 双引号和,同时读取 json 并写入 csv
Dataweave Escape Double Quote and , while reading a json and writing to csv
我正在 json 并尝试以 csv 形式批量加载到 salesforce。但是当我这样做时出现错误。
知道如何转义字符吗?
输入:
[
{
"Name": ".054\" X 6' , Guide \ Wire2",
}
]
dw:
%dw 2.0
output application/csv escape="",quote=""
---
payload
根据这个Bulk API v2 Salesforce Documentation,我认为您需要的 Dataweave writer 配置如下:
output application/csv quote="\"",quoteValues=true,escape="\""
我正在 json 并尝试以 csv 形式批量加载到 salesforce。但是当我这样做时出现错误。
知道如何转义字符吗?
输入:
[
{
"Name": ".054\" X 6' , Guide \ Wire2",
}
]
dw:
%dw 2.0
output application/csv escape="",quote=""
---
payload
根据这个Bulk API v2 Salesforce Documentation,我认为您需要的 Dataweave writer 配置如下:
output application/csv quote="\"",quoteValues=true,escape="\""