在Azure数据工厂中映射自定义变量

时间:2019-10-25 16:20:56

标签: azure-data-factory azure-data-factory-2

如何在Json模式映射中使用自定义变量?我目前遇到错误:

JSON path @variables('myVariable01') is invalid.

1 个答案:

答案 0 :(得分:0)

您必须使用类似

tableDataSource: Observable<CashPaymentModel>;

testMethod() {
    this.tableDataSource = this.cashPaymentService.getCashPayments(this.policyVersionId, this.employeeId).pipe(
      filter(res => res !== undefined),
    ).subscribe((res: CashPaymentModel) => {
      if (res.success) {
        this.tableDataSource = res.data;
      } else {
        // handle false success
        // usually you should not send 200 response code for false success and handle it in 
        // err block of subscribe
      }
    });
  }

其中clientId在您的json中

@activity('GetConfigurations').output.value[0].clientId

GetConfigurations是用于读取设置文件的查找活动。