{
"name": "Send Email Wkfl",
"description": "This workflow will send email",
"definition": {
"start": "Trigger Email",
"steps": {
"Trigger Email": {
"actionId": "sp:send-email",
"attributes": {
"body": "${Name}, Please note that your email address has been updated in our records",
"context": {
"Name.$": "$.identity.name",
"personalEmail.$": "$.identity.personalEmail"
},
"recipientId.$": "$.identity.id",
"subject": "Your email has been changed!"
},
"nextStep": "complete",
"type": "action"
},
"complete": {
"type": "success"
}
}
},
"creator": {
"type": "IDENTITY",
"id": "2c91808778a921330178b1e3b244741e",
"name": "support"
},
"trigger": {
"type": "EVENT",
"attributes": {
"id": "idn:identity-attributes-changed"
}
}
}
Que 1: Can we retrieve the "personalEmail.$": "$.identity.personalEmail"
and send email to it? instead of "recipientId.$": "$.identity.id",
Que 1: Why ${Name} variable value isn’t getting populated here?
"input": {
"body": {
"context": {
"Name": "john.doe",
"personalEmail": null
},
"emailTemplate": {
"body": "${Name}, Please note that your email address has been updated in our records",
"from": "[email protected]",
"replyTo": "[email protected]",
"subject": "Your email has been changed!"
}