[英]AWS AppFlow - rename source field
I have an AppFlow set up with Salesforce as the source and S3 as the destination.我将 AppFlow 设置为 Salesforce 作为源,S3 作为目标。 I am able to move all columns over by using a
Map_all
task type in the flow definition, and leaving the source fields empty.我可以通过在流定义中使用
Map_all
任务类型来移动所有列,并将源字段留空。
However now I want to move just a few columns to S3, and rename them as well.但是现在我只想将几列移动到 S3,并重命名它们。 I was trying to do something like this:
我试图做这样的事情:
"Tasks": [
{
"SourceFields": ["Website"],
"DestinationField": "Website",
"TaskType": "Map",
"TaskProperties": {},
},
{
"SourceFields": ["Account Name"],
"DestinationField": "AccountName",
"TaskType": "Map",
"TaskProperties": {},
},
{
"SourceFields": ["Account ID"],
"DestinationField": "AccountId",
"TaskType": "Map",
"TaskProperties": {},
}
],
but I get the error Create Flow request failed: [Task Validation Error: You must specify a projection task or a MAP_ALL task]
.但我收到错误
Create Flow request failed: [Task Validation Error: You must specify a projection task or a MAP_ALL task]
。
How can I select a few columns as well as rename them before moving them to S3 without resorting to something like Glue?在将它们移动到 S3 之前,我如何 select 几列并重命名它们而不诉诸于 Glue 之类的东西?
Figured it out - first added a Projection task to fetch the fields needed, and then Map tasks, one per field being renamed弄清楚了 - 首先添加了一个投影任务来获取所需的字段,然后是 Map 个任务,每个字段一个被重命名
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.