From 047f7ffbfb00dfea759875906072e7c8f6419432 Mon Sep 17 00:00:00 2001 From: Richard Swinbank Date: Sat, 22 Oct 2022 17:02:26 +0100 Subject: [PATCH] Updating pipeline: CopyAndMapAWEntity --- .../pipeline/CopyAndMapAWEntity.json | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/Code/DataFactory/pipeline/CopyAndMapAWEntity.json b/Code/DataFactory/pipeline/CopyAndMapAWEntity.json index 86f644d..d77bf01 100644 --- a/Code/DataFactory/pipeline/CopyAndMapAWEntity.json +++ b/Code/DataFactory/pipeline/CopyAndMapAWEntity.json @@ -122,6 +122,38 @@ } } ] + }, + { + "name": "Notify error", + "type": "AzureFunctionActivity", + "dependsOn": [ + { + "activity": "Copy AW entity", + "dependencyConditions": [ + "Failed" + ] + } + ], + "policy": { + "timeout": "0.12:00:00", + "retry": 0, + "retryIntervalInSeconds": 30, + "secureOutput": false, + "secureInput": false + }, + "userProperties": [], + "typeProperties": { + "functionName": "SendEmail", + "method": "POST", + "body": { + "value": "{\n \"emailRecipients\": \"richard.swinbank@gmail.com\",\n \"emailSubject\": \"Error copying @{item().EntityName}\",\n \"emailBody\": @{trim('abc')},\n \"emailImportance\": \"High\"\n}", + "type": "Expression" + } + }, + "linkedServiceName": { + "referenceName": "EmailSenderFunction", + "type": "LinkedServiceReference" + } } ] }