Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Email on Asset unpublish

Avatar

Avatar
Validate 1
Level 2
Shaheena_Sk
Level 2

Likes

6 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
Boost 5
View profile

Avatar
Validate 1
Level 2
Shaheena_Sk
Level 2

Likes

6 likes

Total Posts

94 posts

Correct Reply

2 solutions
Top badges earned
Validate 1
Give Back 5
Give Back 3
Give Back
Boost 5
View profile
Shaheena_Sk
Level 2

03-11-2020

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?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 5
Level 3
kiranparab
Level 3

Likes

23 likes

Total Posts

36 posts

Correct Reply

11 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile

Avatar
Boost 5
Level 3
kiranparab
Level 3

Likes

23 likes

Total Posts

36 posts

Correct Reply

11 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile
kiranparab
Level 3

03-11-2020

No OOTB solution to provide Email injection on unpublishing the Asset

 

You need to do customization to invoke this behaviour

Answers (1)

Answers (1)

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,133 likes

Total Posts

3,161 posts

Correct Reply

1,079 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,133 likes

Total Posts

3,161 posts

Correct Reply

1,079 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

04-11-2020

Depends on what you mean with "his assets"? Do you mean the uploader? And what do you mean with "OOTB feature"? Is it the direct publication or the workflow?

 

The easiest way is definitely the workflow, where you create a new workflow step (process step) where you read the username from the metadata of the asset you are deactivating. And based on that you can use the Mail API to send the email.

 

It's getting a bit more complex if you want to handle also the direct deactivation (without workflow), because there you would need to listen to the OSGI events issued by the deactivation process (in the OSGI console there is a list of the last events sent).

 

Jörg