AEM workflow email notification from email address - aem

I need to override the default email address set in " Day CQ Mail Service" because I need it to show different email address for workflow notification.
Based from the documentation [1] "When you receive workflow email notifications, both the from-email address and the host URL prefix are set to default values. You can change these values by configuring the Day CQ Workflow Email Notification Service in the Web Console. If you do so, it is recommended to persist the change in the repository."
[1] https://docs.adobe.com/docs/en/cq/5-6-1/administering/notification.html#Configuring the Workflow Email Notification Service
I was able to set the from-email-address in "Day CQ Workflow Email Notification Service" and verified as well the values are saved in jcr repository "/apps/system/config/com.day.cq.workflow.impl.email.EMailNotificationService.config". Even after doing so, the from-email-address that appears in the workflow email notification is still the same value set in "Day CQ Mail Service".
Any other option for me to try?

After making changes to the Day CQ Workflow Email Notification Service via the web console, have you tried bouncing the Day Communique 5 Workflow Implementation bundle? I believe the properties from the Day CQ Workflow Email Notification Service are read during the activate method when the Day Communique 5 Workflow Implementation bundle starts up.
It makes sense that the properties are being persisted in the JCR after modifying the values for the Day CQ Workflow Email Notification Service, but bouncing the Day Communique 5 Workflow Implementation should re-read the values.

Related

How can I trigger a contact workflow on a specific date in Bitrix24?

I would like to trigger a workflow resetting a sum on all contacts every 1st January of the year. The workflow is implemented. It could be triggered on the specific date or even everyday, because the date is verified in the workflow before resetting.
How can i run it on every contact?
Hello and welcome to Stackoverflow, the answer to your question is as the following:
You need to create a Rest API outbound webhook in your Bitrix account with "CRM" & "Business Process" permissions.
You will write down a PHP code that will be executed on the exact date/time of you choice
The PHP script will do 2 process:
Will retrieve all the contacts that you have on your Bitrix account and store them into a string value.
It will run that Business process and pass the list of all the found contacts, and inside your Business process you're going to set it up in a way that it will run the required actions on every contact from eh contacts IDs passed by the first step.
The PHP script can be hosted in a webhosting or even on your local machine since it's once a year.
This is only the concept of the solution, I can't share the script code because I don't have it at the moments, please contact me if you faces problems.

Email on asset unpublish AEM OOTB

I want to send mails to user when his asset gets unpublished using the OOTB feature.
So, after I configure the Day CQ Mail Service and add email ID to the user details, is there anything else that I need to do? Or will the user automatically receive the email?
You can configure a workflow launcher to run on publish with the event type "node removed". In your workflow model you are going to check if the deleted node is a dam resource and if so, the next step is to configure an email step to send an email to your preferred user. The user and his email should exist on publish. If your users exist only on the author instance, you need a custom step with some kind of publish author notification mechanism or alternativ reverse replication.

VSTS Release Approval Emails

Using the 'Old Editor', there is a way to configure release environment to send emails to approvers via Release Definition > Triggers > Configure Environment as seen in this screen shot. (see also this answer)
Is there a way to do this using the 'New Editor'? Seems like the options for email and blocking the creating user from approving are missing from this workflow.
You can set Approval email notification in the page https://account.visualstudio.com/_notifications (by clicking profile -> Notification settings).
In the notications package, you can add a new subscription for An approval for a deployment is pending, and then specify the email address(es) and filter conditions.
with the integrated notification settings experience, we are moving
the control on notifications from the sender to the receiver. By
default, we'll always raise notification events whenever approvals are
pending and based on receiver's preferences around whether he wants to
be notified by email or not.
More details, you can refer:
Personalize what notifications you receive for releases
New Release Editor does not expose option to Send email to approver
Example:
In notification page, add a new subscription An approval for a deployment is pending, the detail settings as below:
Just add the email address(es) who need to receive this kind of email, for multiple email addresses, separate with comma (,).

Prevent Dynamic CRM Workflow from sending an email to a Disabled User

I am using Microsoft Dynamic CRM Online and have a workflow issue. When the status of a case is modified, there is a workflow that kicks off to send members of the case team an e-mail. The problem is, it is sending the message to members of the team that have been recently disabled.
Example: User Jack Bauer is added to Case FOX24. One month later, Jack's account is marked as disabled. The following week, the status of the case is updated and a workflow is triggered to send team members an e-mail.
Is there a way inside a workflow to prevent the email from being sent if the user is disabled?
So far, I haven't found anyway to stop the email.
I solved my problem by creating a child workflow to remove any disabled users from the case specific attributes before the email is sent. The new process contains the nine checks for disabled users as well as an Update Record action for each check to {clear} the value of the associated attribute. It is marked as "Run on demand" so users can clean the Case record anytime they desire.
The child workflow will be called once per email in the parent workflow because they are sent using different timeout periods. Even if a user is disabled in the week or so between the first and second message, they shouldn't receive the messages.
Add a condition into the workflow which checks the status of the record in the 'To' field of the email.

OTRS - ticket from api, can't send email notification to customer

I'm trying to send email notification to customer after ticket is created with OTRS rest api. I know that it's impossible only with api so I created notification that reacts on TicketCreated event. My problem is email recipent. Notification is working on hardcoded email but I want to send notification to customer from ticket. When I'm selecting "customers" in recipent groups it's not working for tickets from api. But it's working for tickets created in web interface - result is that customer receive 2 emails - one original and one from notification. What I'm doing wrong? How to set customer with api? Below is my request
{
"Ticket":{
"Title":"REST Create Test",
"Type":"Unclassified",
"Queue":"Raw",
"State":"open",
"Priority":"3 normal",
"CustomerUser":"customer.email#gmail.com"
},
"Article":{
"Subject":"some subject ",
"Body":"nice body",
"ContentType":"text/plain; charset=utf8",
"From":"otrs#fancy.company"
}
}
Even if no customer found in backend passed via web service, notificator will try to send mail to first mail sender - "customer.email#gmail.com" in your case.
Keep in mind that NotificationEvent is transactional by default, so it works in TicketObject destructor.
So reasons are:
Destructor is not called (for example inside of scheduler tasks). In this case you must call destructor manually.
More likely that ticket attributes have been changed after calling TicketCreate. So when destructor is performed, one of your notification attributes (Queue, Service, etc.) doesn't match ticket attribute.
I have got same issue. Don't know why. I created ticket successfully via rest API.
Finally I got solution to fix it. Just modify or create new event in "Ticket Notifications". Add event create ticket and set ticket filter is "open", "close" image