@itentialopensource/email-notification
Version:
[Deprecated] Send Email Notifications
1,475 lines • 44.7 kB
JSON
{
"metadata": {
"name": "@itentialopensource/email-notification",
"version": "0.0.19-2023.1.3",
"description": "[Deprecated] Send Email Notifications",
"license": "Apache-2.0",
"repository": {
"type": "gitlab",
"hostname": "gitlab.com",
"path": "itentialopensource/pre-built-automations"
},
"keywords": [
"Itential",
"IAP",
"artifacts",
"pre-built"
],
"author": "Itential Automation Platform",
"IAPDependencies": {
"@itential/app-operations_manager": "",
"@itential/app-json_forms": "1.14.10",
"@itential/app-workflow_engine": "7.14.4"
},
"gitlabId": 25166081
},
"manifest": {
"bundleName": "@itentialopensource/email-notification",
"fingerprint": "64b6a6a0810a0600892a286b",
"createdEpoch": "1689691808264",
"artifacts": [
{
"id": "Email Notification",
"name": "Email Notification",
"type": "automation",
"location": "/bundles/automations/Email Notification.json",
"properties": {
"entryPoint": false
}
},
{
"id": "Email Notification",
"name": "Email Notification",
"type": "workflow",
"location": "/bundles/workflows/Email Notification.json",
"properties": {
"entryPoint": false
}
},
{
"id": "Email Notification Wrapper",
"name": "Email Notification Wrapper",
"type": "workflow",
"location": "/bundles/workflows/Email Notification Wrapper.json",
"properties": {
"entryPoint": false
}
},
{
"id": "Email Notification",
"name": "Email Notification",
"type": "json-forms",
"location": "/bundles/json_forms/Email Notification.json",
"properties": {
"entryPoint": false
}
},
{
"id": "64b16d632fd532015bdf29f9",
"name": "Parse receiver emails",
"type": "transformation",
"location": "/bundles/transformations/Parse receiver emails.json",
"properties": {
"entryPoint": false
}
},
{
"id": "5fda8e5c255fc96a1dd6c4dc",
"name": "email-notification",
"type": "transformation",
"location": "/bundles/transformations/email-notification.json",
"properties": {
"entryPoint": false
}
},
{
"id": "5ff35e589bc9347a490356a7",
"name": "automationStatus",
"type": "transformation",
"location": "/bundles/transformations/automationStatus.json",
"properties": {
"entryPoint": false
}
}
]
},
"bundles": [
{
"type": "automation",
"data": {
"_id": "61b003706d147f01a8deb03c",
"name": "Email Notification",
"description": "",
"componentName": "Email Notification Wrapper",
"componentType": "workflows",
"gbac": {
"write": [],
"read": []
},
"created": "2023-07-14T14:00:32.177Z",
"createdBy": "admin@pronghorn",
"lastUpdated": "2023-07-14T18:58:01.913Z",
"lastUpdatedBy": "admin@pronghorn",
"triggers": [
{
"_id": "64b19abada86dd014f4eef75",
"created": "2023-07-14T14:00:32.507Z",
"createdBy": "admin@pronghorn",
"lastUpdated": "2023-07-14T18:58:02.200Z",
"lastUpdatedBy": "admin@pronghorn",
"name": "Start Email Notification with Form",
"type": "manual",
"enabled": true,
"actionType": "automations",
"actionId": "61b003706d147f01a8deb03c",
"formId": "Email Notification",
"formData": null,
"description": "",
"formSchemaHash": "5fd2ac33e75f31b7da7a9355a32d6cda2c60b2fce168b8564c19f58ffcc345f0",
"migrationVersion": 2
}
]
}
},
{
"type": "workflow",
"data": {
"name": "Email Notification",
"tasks": {
"8954": {
"name": "transformation",
"canvasName": "transformation",
"summary": "Parse receiver emails",
"description": "Perform a JSON Transformation using the JST library.",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"type": "operation",
"displayName": "WorkFlowEngine",
"variables": {
"incoming": {
"tr_id": "64b16d632fd532015bdf29f9",
"variableMap": {
"receiverList": "$var.job.to"
},
"options": {
"extractOutput": true,
"validateIncoming": true,
"revertToDefaultValue": true
}
},
"outgoing": {
"receiverList": null
},
"decorators": []
},
"deprecated": false,
"groups": [],
"x": -0.39810834049871024,
"y": 0.6856780735107731,
"task_name": "Parse receiver emails",
"retrySettings": null
},
"workflow_start": {
"name": "workflow_start",
"groups": [],
"x": -0.5107480653482374,
"y": 0.6717363751584284
},
"workflow_end": {
"name": "workflow_end",
"groups": [],
"x": 0.2003439380911436,
"y": 0.6730038022813688
},
"4bd0": {
"name": "transformation",
"canvasName": "transformation",
"summary": "Create Error Response",
"description": "Create Error Response",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"type": "operation",
"displayName": "WorkFlowEngine",
"variables": {
"incoming": {
"tr_id": "5ff35e589bc9347a490356a7",
"variableMap": {
"status": "error",
"taskData": "$var.803.error"
},
"options": {
"extractOutput": true,
"validateIncoming": false,
"revertToDefaultValue": false
}
},
"outgoing": {
"automationStatus": null
},
"decorators": []
},
"deprecated": false,
"groups": [],
"x": -0.08598452278589853,
"y": 0.9277566539923955,
"retrySettings": null
},
"465b": {
"name": "transformation",
"canvasName": "transformation",
"summary": "Create Success Response",
"description": "Create Success Response",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"type": "operation",
"displayName": "WorkFlowEngine",
"variables": {
"incoming": {
"tr_id": "5ff35e589bc9347a490356a7",
"variableMap": {
"status": "success",
"taskData": "$var.be47.response"
},
"options": {
"extractOutput": true,
"validateIncoming": false,
"revertToDefaultValue": false
}
},
"outgoing": {
"automationStatus": null
},
"decorators": []
},
"deprecated": false,
"groups": [],
"x": -0.049011177987962166,
"y": 0.6806083650190115,
"retrySettings": null
},
"6fe9": {
"name": "newVariable",
"canvasName": "newVariable",
"summary": "Create a Job Variable",
"description": "Create a new Job variable by Job ID and assign it a value.",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"type": "operation",
"displayName": "WorkFlowEngine",
"variables": {
"incoming": {
"name": "automationStatus",
"value": "$var.465b.automationStatus"
},
"outgoing": {
"value": null
}
},
"deprecated": false,
"groups": [],
"x": 0.09458297506448839,
"y": 0.6768060836501901
},
"4b75": {
"name": "newVariable",
"canvasName": "newVariable",
"summary": "Create a Job Variable",
"description": "Create a new Job variable by Job ID and assign it a value.",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"type": "operation",
"displayName": "WorkFlowEngine",
"variables": {
"incoming": {
"name": "automationStatus",
"value": "$var.4bd0.automationStatus"
},
"outgoing": {
"value": null
}
},
"deprecated": false,
"groups": [],
"x": 0.06362854686156492,
"y": 0.9049429657794676
},
"be47": {
"name": "mailWithOptions",
"canvasName": "mailWithOptions",
"summary": "Send email with cc, bcc, and attachment options",
"description": "Email a message with cc, bcc, and attachment options.",
"location": "Adapter",
"locationType": "EmailOpensource",
"app": "EmailOpensource",
"type": "automatic",
"displayName": "EmailOpensource",
"variables": {
"incoming": {
"from": "$var.job.from",
"to": "$var.8954.receiverList",
"subject": "$var.job.subject",
"body": "$var.job.body",
"displayName": "",
"cc": "",
"bcc": "",
"attachments": "",
"adapter_id": "$var.job.adapterId"
},
"outgoing": {
"response": null
},
"error": "",
"decorators": []
},
"deprecated": false,
"groups": [],
"actor": "Pronghorn",
"x": -0.23093371347113328,
"y": 0.693359375,
"scheduled": false
}
},
"transitions": {
"4971": {},
"8954": {
"be47": {
"type": "standard",
"state": "success"
}
},
"workflow_start": {
"8954": {
"type": "standard",
"state": "success"
}
},
"workflow_end": {},
"d30a": {},
"4bd0": {
"4b75": {
"type": "standard",
"state": "success"
}
},
"465b": {
"6fe9": {
"type": "standard",
"state": "success"
}
},
"6fe9": {
"workflow_end": {
"type": "standard",
"state": "success"
}
},
"4b75": {
"workflow_end": {
"type": "standard",
"state": "success"
}
},
"be47": {
"465b": {
"type": "standard",
"state": "success"
},
"4bd0": {
"type": "standard",
"state": "error"
}
}
},
"font_size": 12,
"created": "2020-12-16T22:25:34.630Z",
"created_by": {
"provenance": "LDAP Server",
"username": "abhansali",
"firstname": "Ankit",
"inactive": true
},
"createdVersion": "5.10.4-2020.1.22.0",
"last_updated": "2023-07-18T14:37:26.986Z",
"last_updated_by": {
"provenance": "local_aaa",
"username": "admin@pronghorn",
"firstname": "admin",
"inactive": false
},
"lastUpdatedVersion": "5.46.0-2023.1.13.0",
"type": "automation",
"description": null,
"inputSchema": {
"type": "object",
"properties": {
"to": {
"$id": "receiverList",
"type": "string"
},
"from": {
"title": "from",
"type": "string",
"examples": [
"example@itential.com"
],
"minLength": 1
},
"subject": {
"title": "subject",
"type": "string",
"examples": [
"Successful Device Deployment"
]
},
"body": {
"title": "body",
"type": "string",
"examples": [
"Your device successfully deployed with the following details..."
]
},
"adapterId": {
"type": [
"array",
"boolean",
"null",
"number",
"object",
"string"
]
}
},
"required": [
"to",
"from",
"subject",
"body",
"adapterId"
]
},
"outputSchema": {
"type": "object",
"properties": {
"to": {
"$id": "receiverList",
"type": "string"
},
"from": {
"title": "from",
"type": "string",
"examples": [
"example@itential.com"
],
"minLength": 1
},
"subject": {
"title": "subject",
"type": "string",
"examples": [
"Successful Device Deployment"
]
},
"body": {
"title": "body",
"type": "string",
"examples": [
"Your device successfully deployed with the following details..."
]
},
"adapterId": {
"type": [
"array",
"boolean",
"null",
"number",
"object",
"string"
]
},
"_id": {
"type": "string",
"pattern": "^[0-9a-f]{24}$"
},
"initiator": {
"type": "string"
},
"automationStatus": {
"type": [
"array",
"boolean",
"null",
"number",
"object",
"string"
]
}
}
},
"migrationVersion": 2,
"canvasVersion": 1,
"tags": [],
"groups": []
}
},
{
"type": "workflow",
"data": {
"name": "Email Notification Wrapper",
"tasks": {
"workflow_start": {
"name": "workflow_start",
"groups": [],
"x": -0.4453998280309544,
"y": 0.6692015209125475
},
"workflow_end": {
"name": "workflow_end",
"groups": [],
"x": 0.12088698140200287,
"y": 0.6772413793103448
},
"458e": {
"name": "transformation",
"canvasName": "transformation",
"summary": "Parse Form Data",
"description": "Parse Form Data",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"type": "operation",
"displayName": "WorkFlowEngine",
"variables": {
"incoming": {
"tr_id": "5fda8e5c255fc96a1dd6c4dc",
"variableMap": {
"formData": "$var.job.formData"
},
"options": {
"extractOutput": false,
"validateIncoming": false,
"revertToDefaultValue": false
}
},
"outgoing": {
"to": null,
"from": null,
"subject": null,
"messageBody": null,
"adapterId": null
},
"decorators": []
},
"deprecated": false,
"groups": [],
"x": -0.3379191745485813,
"y": 0.6679340937896071,
"retrySettings": null
},
"e4fa": {
"name": "childJob",
"canvasName": "childJob",
"summary": "Email Notification",
"description": "Email Notification",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"type": "operation",
"displayName": "WorkFlowEngine",
"variables": {
"incoming": {
"task": "",
"workflow": "Email Notification",
"variables": {
"from": {
"editable": true,
"task": "458e",
"value": "from"
},
"to": {
"editable": true,
"task": "458e",
"value": "to"
},
"subject": {
"editable": true,
"task": "458e",
"value": "subject"
},
"body": {
"editable": true,
"task": "458e",
"value": "messageBody"
},
"adapterId": {
"editable": true,
"task": "458e",
"value": "adapterId"
}
},
"data_array": "",
"transformation": "",
"loopType": ""
},
"outgoing": {
"job_details": null
}
},
"deprecated": false,
"groups": [],
"actor": "job",
"x": -0.19002579535683578,
"y": 0.6768060836501901
},
"33c0": {
"name": "query",
"canvasName": "query",
"summary": "Query result of Email Notification",
"description": "Query result of email notification",
"location": "Application",
"locationType": null,
"app": "WorkFlowEngine",
"type": "operation",
"displayName": "WorkFlowEngine",
"variables": {
"incoming": {
"pass_on_null": false,
"query": "automationStatus",
"obj": "$var.e4fa.job_details"
},
"outgoing": {
"return_data": "$var.job.automationStatus"
},
"error": "",
"decorators": []
},
"deprecated": false,
"groups": [],
"x": -0.06362854686156492,
"y": 0.6717363751584284,
"scheduled": false
}
},
"transitions": {
"4971": {},
"workflow_start": {
"458e": {
"type": "standard",
"state": "success"
}
},
"workflow_end": {},
"d30a": {},
"458e": {
"e4fa": {
"type": "standard",
"state": "success"
}
},
"4bd0": {},
"e4fa": {
"33c0": {
"type": "standard",
"state": "success"
}
},
"33c0": {
"workflow_end": {
"type": "standard",
"state": "success"
}
}
},
"font_size": 12,
"created": "2023-07-14T15:01:56.926Z",
"created_by": {
"provenance": "local_aaa",
"username": "admin@pronghorn",
"firstname": "admin",
"inactive": false
},
"createdVersion": "5.44.64-2022.1.36.0",
"last_updated": "2023-07-14T18:58:01.750Z",
"last_updated_by": {
"provenance": "local_aaa",
"username": "admin@pronghorn",
"firstname": "admin",
"inactive": false
},
"lastUpdatedVersion": "4.15.0-2023.1.85.0",
"type": "automation",
"description": null,
"inputSchema": {
"type": "object",
"properties": {
"formData": {
"$id": "formData",
"type": "object",
"properties": {
"senderEmailAddress": {
"type": "string",
"examples": [
"we"
]
},
"receiverEmailAddress": {
"type": "string"
},
"subject": {
"type": "string",
"examples": [
"rewrr"
]
},
"message": {
"type": "string",
"examples": [
"erw"
]
},
"emailAdapter": {
"type": "string",
"examples": [
"erw"
]
}
},
"required": []
}
},
"required": [
"formData"
]
},
"outputSchema": {
"type": "object",
"properties": {
"formData": {
"$id": "formData",
"type": "object",
"properties": {
"senderEmailAddress": {
"type": "string",
"examples": [
"we"
]
},
"receiverEmailAddress": {
"type": "string"
},
"subject": {
"type": "string",
"examples": [
"rewrr"
]
},
"message": {
"type": "string",
"examples": [
"erw"
]
},
"emailAdapter": {
"type": "string",
"examples": [
"erw"
]
}
},
"required": []
},
"_id": {
"type": "string",
"pattern": "^[0-9a-f]{24}$"
},
"initiator": {
"type": "string"
},
"automationStatus": {
"title": "return_data",
"type": [
"string",
"number",
"object",
"integer",
"array",
"boolean",
"null"
],
"examples": [
"value"
]
}
}
},
"migrationVersion": 2,
"canvasVersion": 1,
"tags": [],
"groups": []
}
},
{
"type": "json-forms",
"data": {
"id": "5fda8c6b28888e6ad37d41fd",
"created": "2020-12-16T22:38:35.484Z",
"createdBy": "admin@pronghorn",
"lastUpdated": "2023-07-14T18:58:01.901Z",
"lastUpdatedBy": "admin@pronghorn",
"name": "Email Notification",
"description": "Send notification using email",
"struct": {
"type": "array",
"items": [
{
"nodeId": "1d8a2f0a-fdce-48c1-a234-558f1402a982",
"type": "string",
"title": "Sender Email Address",
"description": "",
"placeholder": "Enter the email address of sender.",
"required": true
},
{
"nodeId": "61feec0c-e662-4f96-8b08-f58df8c09cc0",
"type": "string",
"title": "Receiver Email Address ",
"description": "Separate email addresses with a semicolon ;",
"placeholder": "Example: example@itential.com;example2@itential.com",
"required": true
},
{
"nodeId": "e6dbe352-feee-4f94-82e2-3dda7b7e812c",
"type": "string",
"title": "Subject",
"description": "",
"placeholder": "Enter subject for the email",
"required": true
},
{
"nodeId": "f47c16c0-b4db-4894-894f-f095bdb6320a",
"type": "string",
"widget": "textarea",
"title": "Message",
"description": "",
"placeholder": "Email Message",
"required": true
},
{
"nodeId": "38be1b44-fa6a-486d-a080-e692d8a871fb",
"type": "string",
"title": "Email Adapter",
"description": "",
"placeholder": "Select Email Adapter",
"required": true,
"enum": [],
"enumNames": [],
"binding": true,
"rel": "collection",
"targetPointer": "/enum",
"method": "GET",
"uniqueItems": false,
"base": "/health",
"originalHref": "/adapters",
"href": "/adapters",
"sourcePointer": "/results",
"sourceKeyPointer": "/id"
}
]
},
"schema": {
"title": "Email Notification",
"description": "Send notification using email",
"type": "object",
"required": [
"senderEmailAddress",
"receiverEmailAddress",
"subject",
"message",
"emailAdapter"
],
"properties": {
"senderEmailAddress": {
"type": "string",
"title": "Sender Email Address",
"_id": "/properties/senderEmailAddress",
"description": ""
},
"receiverEmailAddress": {
"type": "string",
"title": "Receiver Email Address ",
"_id": "/properties/receiverEmailAddress",
"description": "Separate email addresses with a semicolon ;"
},
"subject": {
"type": "string",
"title": "Subject",
"_id": "/properties/subject",
"description": ""
},
"message": {
"type": "string",
"title": "Message",
"_id": "/properties/message",
"description": ""
},
"emailAdapter": {
"type": "string",
"title": "Email Adapter",
"_id": "/properties/emailAdapter",
"description": "",
"enum": [],
"enumNames": []
}
}
},
"uiSchema": {
"senderEmailAddress": {
"ui:placeholder": "Enter the email address of sender."
},
"receiverEmailAddress": {
"ui:placeholder": "Example: example@itential.com;example2@itential.com"
},
"subject": {
"ui:placeholder": "Enter subject for the email"
},
"message": {
"ui:placeholder": "Email Message",
"ui:widget": "textarea"
},
"emailAdapter": {
"ui:placeholder": "Select Email Adapter"
}
},
"bindingSchema": {
"properties": {
"emailAdapter": {
"binding:method": "GET",
"binding:link": {
"$ref": "/links",
"rel": "collection"
},
"binding:target": {
"propertyPointer": "/enum"
},
"binding:hyperSchema": {
"type": "object",
"base": "/health",
"links": [
{
"rel": "collection",
"href": "/adapters",
"targetMediaType": "application/json",
"targetSchema": {
"$ref": "#"
},
"variables": []
}
]
},
"binding:source": {
"propertyPointer": "/results",
"keyPointer": "/id"
}
}
}
},
"validationSchema": {},
"version": "2020.1"
}
},
{
"type": "transformation",
"data": {
"_id": "64b16d632fd532015bdf29f9",
"name": "Parse receiver emails",
"description": "",
"incoming": [
{
"$id": "receiverList",
"type": "string"
}
],
"outgoing": [
{
"$id": "receiverList",
"type": "array"
}
],
"steps": [
{
"id": 1,
"type": "declaration",
"library": "RegExp",
"method": "new RegExp",
"args": [
"\\s*;\\s*",
"gm"
],
"view": {
"row": 2,
"col": 1
},
"context": "#"
},
{
"id": 2,
"type": "method",
"library": "String",
"method": "split",
"args": [
null,
null,
null
],
"view": {
"row": 1,
"col": 2
},
"context": "#"
},
{
"id": 3,
"type": "assign",
"from": {
"location": "declaration",
"name": 1,
"ptr": "/return"
},
"to": {
"location": "method",
"name": 2,
"ptr": "/args/1/value"
},
"context": "#"
},
{
"id": 4,
"type": "assign",
"from": {
"location": "method",
"name": 2,
"ptr": "/return"
},
"to": {
"location": "outgoing",
"name": "receiverList",
"ptr": ""
},
"context": "#"
},
{
"id": 5,
"type": "assign",
"from": {
"location": "incoming",
"name": "receiverList",
"ptr": ""
},
"to": {
"location": "method",
"name": 2,
"ptr": "/args/0/value"
},
"context": "#"
}
],
"functions": [],
"comments": [],
"view": {
"col": 2,
"row": 5
},
"created": "2023-07-14T18:58:01.659Z",
"createdBy": {
"_id": "646fa4422d25720618a4c098",
"provenance": "local_aaa",
"username": "admin@pronghorn"
},
"lastUpdated": "2023-07-14T18:58:01.659Z",
"lastUpdatedBy": {
"_id": "646fa4422d25720618a4c098",
"provenance": "local_aaa",
"username": "admin@pronghorn"
},
"version": "4.1.2-2023.1.5",
"tags": []
}
},
{
"type": "transformation",
"data": {
"_id": "5fda8e5c255fc96a1dd6c4dc",
"name": "email-notification",
"description": "",
"incoming": [
{
"$id": "formData",
"type": "object",
"properties": {
"senderEmailAddress": {
"type": "string",
"examples": [
"we"
]
},
"receiverEmailAddress": {
"type": "string"
},
"subject": {
"type": "string",
"examples": [
"rewrr"
]
},
"message": {
"type": "string",
"examples": [
"erw"
]
},
"emailAdapter": {
"type": "string",
"examples": [
"erw"
]
}
},
"required": []
}
],
"outgoing": [
{
"$id": "to",
"type": "string"
},
{
"$id": "from",
"type": "string",
"examples": [
"from"
]
},
{
"$id": "subject",
"type": "string",
"examples": [
"subject"
]
},
{
"$id": "messageBody",
"type": "string",
"examples": [
"message"
]
},
{
"$id": "adapterId",
"type": "string"
}
],
"steps": [
{
"id": 1,
"type": "assign",
"from": {
"location": "incoming",
"name": "formData",
"ptr": "/senderEmailAddress"
},
"to": {
"location": "outgoing",
"name": "from",
"ptr": ""
}
},
{
"id": 2,
"type": "assign",
"from": {
"location": "incoming",
"name": "formData",
"ptr": "/subject"
},
"to": {
"location": "outgoing",
"name": "subject",
"ptr": ""
}
},
{
"id": 3,
"type": "assign",
"from": {
"location": "incoming",
"name": "formData",
"ptr": "/message"
},
"to": {
"location": "outgoing",
"name": "messageBody",
"ptr": ""
}
},
{
"id": 20,
"type": "assign",
"from": {
"location": "incoming",
"name": "formData",
"ptr": "/emailAdapter"
},
"to": {
"location": "outgoing",
"name": "adapterId",
"ptr": ""
},
"context": "#"
},
{
"id": 21,
"type": "assign",
"from": {
"location": "incoming",
"name": "formData",
"ptr": "/receiverEmailAddress"
},
"to": {
"location": "outgoing",
"name": "to",
"ptr": ""
},
"context": "#"
}
],
"functions": [
{
"incoming": [
{
"type": [
"array",
"boolean",
"number",
"integer",
"string",
"object",
"null"
],
"$id": "currentValue"
},
{
"title": "index",
"type": "number",
"optional": true,
"$id": "index"
},
{
"type": "array",
"$id": "array",
"optional": true
},
{
"$id": "thisArg",
"type": "object",
"properties": {},
"isContext": true,
"isThis": true,
"isIndexed": true
}
],
"outgoing": [
{
"title": "newValue",
"type": [
"array",
"boolean",
"number",
"integer",
"string",
"object",
"null"
],
"editable": true,
"$id": "newValue"
}
],
"functions": [],
"name": "mapReceiverEmail",
"steps": [
{
"id": 1,
"type": "method",
"library": "Object",
"method": "getProperty",
"args": [
null,
"receiverEmailAddress"
],
"view": {
"row": 1,
"col": 1
},
"context": "#"
},
{
"id": 2,
"type": "assign",
"from": {
"location": "method",
"name": 1,
"ptr": "/return"
},
"to": {
"location": "outgoing",
"name": "newValue",
"ptr": ""
},
"context": "#"
},
{
"id": 3,
"type": "assign",
"from": {
"location": "incoming",
"name": "currentValue",
"ptr": ""
},
"to": {
"location": "method",
"name": 1,
"ptr": "/args/0/value"
},
"context": "#"
}
],
"view": {
"col": 1,
"row": 4
},
"id": "mapReceiverEmail",
"comments": []
}
],
"comments": [],
"view": {
"col": 2,
"row": 5
},
"created": "2023-07-14T18:58:01.666Z",
"createdBy": {
"_id": "646fa4422d25720618a4c098",
"provenance": "local_aaa",
"username": "admin@pronghorn"
},
"lastUpdated": "2023-07-14T18:58:01.666Z",
"lastUpdatedBy": {
"_id": "646fa4422d25720618a4c098",
"provenance": "local_aaa",
"username": "admin@pronghorn"
},
"version": "4.1.2-2023.1.5",
"tags": []
}
},
{
"type": "transformation",
"data": {
"_id": "5ff35e589bc9347a490356a7",
"name": "automationStatus",
"description": "",
"incoming": [
{
"$id": "status",
"type": "string",
"examples": [
"status"
]
},
{
"$id": "taskData",
"type": [
"object",
"string"
]
}
],
"outgoing": [
{
"$id": "automationStatus",
"type": "object",
"properties": {
"status": {
"type": "string",
"examples": [
"success"
]
},
"responseData": {
"type": [
"object",
"string"
]
}
},
"required": []
}
],
"steps": [
{
"id": 2,
"type": "assign",
"from": {
"location": "incoming",
"name": "status",
"ptr": ""
},
"to": {
"location": "outgoing",
"name": "automationStatus",
"ptr": "/status"
}
},
{
"id": 3,
"type": "assign",
"from": {
"location": "incoming",
"name": "taskData",
"ptr": ""
},
"to": {
"location": "outgoing",
"name": "automationStatus",
"ptr": "/responseData"
}
}
],
"functions": [],
"comments": [],
"view": {
"col": 3,
"row": 5
},
"created": "2023-07-14T18:58:01.664Z",
"createdBy": {
"_id": "646fa4422d25720618a4c098",
"provenance": "local_aaa",
"username": "admin@pronghorn"
},
"lastUpdated": "2023-07-14T18:58:01.664Z",
"lastUpdatedBy": {
"_id": "646fa4422d25720618a4c098",
"provenance": "local_aaa",
"username": "admin@pronghorn"
},
"version": "4.1.2-2023.1.5",
"tags": []
}
}
],
"readme": "<!-- This is a comment in md (Markdown) format, it will not be visible to the end user -->\n## _Deprecation Notice_\n\nThis Pre-Built Automation has been deprecated as of 02-21-2024 and will be end of life on 02-21-2025. The capabilities of this Pre-Built Automation have been replaced by the Pre-Built [Email - SMTP](https://gitlab.com/itentialopensource/pre-built-automations/email-smtp).\n\n<!-- Update the below line with your Pre-Built name -->\n# Email Notification\n\n<!-- Leave TOC intact unless you've added or removed headers -->\n## Table of Contents\n\n- [Email Notification](#email-notification)\n - [Table of Contents](#table-of-contents)\n - [Overview](#overview)\n - [Operations Manager and JSON-Form](#operations-manager-and-json-form)\n - [Installation Prerequisites](#installation-prerequisites)\n - [Requirements](#requirements)\n - [Features](#features)\n - [How to Install](#how-to-install)\n - [How to Run](#how-to-run)\n - [Input Variables](#input-variables)\n - [Additional Information](#additional-information)\n\n\n## Overview\n\nThis Pre-Built integrates with the Email Adapter to deliver email notifications to end users. This Pre-Built simplifies the process of sending an email at any point in an automation.\n\n## Operations Manager and JSON-Form\n\nThis Pre-Built has an Operations Manager automation `Email Notification` that calls a workflow. The automation uses a JSON-Form to specify common fields populated when an issue is created. The workflow the automation calls queries data from the formData job variable.\n\n\n## Installation Prerequisites\n\nUsers must satisfy the following pre-requisites:\n\n- Itential Automation Platform\n - `^2023.1`\n\n## Requirements\n\nThis Pre-Built requires the following:\n\n- The [Email Adapter](https://gitlab.com/itentialopensource/adapters/notification-messaging/adapter-email) is configured and integrated with an email server\n\n## Features\n\nThe main benefits and features of the Pre-Built are outlined below:\n\n* Allows a user to send a notification via email\n\n\n## How to Install\n\nTo install the Pre-Built:\n\n* Verify you are running a supported version of the Itential Automation Platform (IAP) as listed above in the Requirements section in order to install the Pre-Built. \n* The Pre-Built can be installed from within App-Admin_Essential. Simply search for the name of your desired Pre-Built and click the install button.\n\n## How to Run\n\nUse the following to run the Pre-Built:\n\n* Run the Operations Manager automation `Email Notification` or run the workflow Email Notification in a childJob task.\n\n### Input Variables\n_Example_\n\n```json\n{\n \"senderEmailAddress\": \"The email sender\",\n \"receiverEmailAddress\": \"The email receiver\",\n \"subject\": \"The email subject\",\n \"body\": \"The email body\"\n}\n```\n\n## Additional Information\n\nPlease use your Itential Customer Success account if you need support when using this Pre-Built.\n"
}