Aem 6.5 workflow | email notification at every step of workflow | Community
Skip to main content
Level 2
February 1, 2024
Solved

Aem 6.5 workflow | email notification at every step of workflow

  • February 1, 2024
  • 3 replies
  • 1023 views

Hi

i saw adobe documents where they mentioned about smtp configurations and email templates. That step i am done.

but what steps to add at workflow model or custom steps to send email to their outlook to all workflow users at every step of workflow. This is content approval and activation workflow

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Raja_Reddy

Hi @sumansatija4 

To send email notifications to Outlook users at every step of a workflow, you can follow these steps:

1. Create a custom step in your workflow model: In your workflow model, you can add a custom step that will trigger the email notification. This step will be responsible for sending the email to the Outlook users.

2. Configure the custom step to send email: In the custom step, you will need to configure the logic to send the email. This can be done by using the SMTP configurations and email templates that you have already set up. You can use the SMTP server settings provided by your email service provider and create email templates with placeholders for dynamic content.

3. Retrieve the list of workflow users: At each step of the workflow, you will need to retrieve the list of users who need to receive the email notification. This can be done by querying the workflow users associated with the current step.

4. Generate the email content: Once you have the list of users, you can generate the email content by populating the email template with the relevant information. This can include details about the workflow step, the document being approved, and any other relevant information.

5. Send the email: Finally, you can use the SMTP configurations to send the email to the Outlook users. You can use the email addresses of the workflow users as recipients and include the generated email content as the body of the email.

 

 

3 replies

narendragandhi
Community Advisor
Community Advisor
February 1, 2024

Hi @sumansatija4 

 

There are multiple options to enable the email notification. For the participant steps, you can enable "notify user by Email" option in the workflow dialog, screenshot below for reference -

 

 

If you have written a custom email workflow process or looking to use ACS Commons email API (for templated emails) - https://adobe-consulting-services.github.io/acs-aem-commons/features/workflow-processes/send-templated-email/index.html

 then you can include a process step and select your process from the dropdown.

 

Thanks

Narendra

Raja_Reddy
Community Advisor
Raja_ReddyCommunity AdvisorAccepted solution
Community Advisor
February 1, 2024

Hi @sumansatija4 

To send email notifications to Outlook users at every step of a workflow, you can follow these steps:

1. Create a custom step in your workflow model: In your workflow model, you can add a custom step that will trigger the email notification. This step will be responsible for sending the email to the Outlook users.

2. Configure the custom step to send email: In the custom step, you will need to configure the logic to send the email. This can be done by using the SMTP configurations and email templates that you have already set up. You can use the SMTP server settings provided by your email service provider and create email templates with placeholders for dynamic content.

3. Retrieve the list of workflow users: At each step of the workflow, you will need to retrieve the list of users who need to receive the email notification. This can be done by querying the workflow users associated with the current step.

4. Generate the email content: Once you have the list of users, you can generate the email content by populating the email template with the relevant information. This can include details about the workflow step, the document being approved, and any other relevant information.

5. Send the email: Finally, you can use the SMTP configurations to send the email to the Outlook users. You can use the email addresses of the workflow users as recipients and include the generated email content as the body of the email.

 

 

kautuk_sahni
Community Manager
Community Manager
February 2, 2024

@sumansatija4 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni