Send AEM inbox programatically to a group | Community
Skip to main content
Level 3
June 12, 2018
Solved

Send AEM inbox programatically to a group

  • June 12, 2018
  • 2 replies
  • 2337 views

To send inbox notification programmatically for a user we can do as below.

         

            ResourceResolver resourceResolver = resolverFactory.getResourceResolver(null);

            InboxNotification inboxNotification = inboxNotificationSender.buildInboxNotification();

            inboxNotification.setAssignee("admin");

            inboxNotification.setTitle("Page Published");

            inboxNotification.setMessage("The page has been Published");

            inboxNotificationSender.sendInboxNotification(resourceResolver, inboxNotification);

Is there any way we can send inbox notification to a group programmatically? I tried sendInboxNotifications but it is not happening.

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 arunpatidar

Hi

sendInboxNotifications uses Task API to send inbox notification and Task Class contains method to send notification only owner

void setCurrentAssignee(String ownerId)

Task ("The Adobe AEM Quickstart and Web Application.")

acs-aem-commons/InboxNotificationSenderImpl.java at master · Adobe-Consulting-Services/acs-aem-commons · GitHub

Adobe Experience Manager Help | Developing for Task Management in AEM 

You can develop your own Class and implements sendInboxNotifications to override in order to pass group and get All user within group and loop through to send notification to all.

Thanks

Arun

2 replies

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
June 13, 2018

Hi

sendInboxNotifications uses Task API to send inbox notification and Task Class contains method to send notification only owner

void setCurrentAssignee(String ownerId)

Task ("The Adobe AEM Quickstart and Web Application.")

acs-aem-commons/InboxNotificationSenderImpl.java at master · Adobe-Consulting-Services/acs-aem-commons · GitHub

Adobe Experience Manager Help | Developing for Task Management in AEM 

You can develop your own Class and implements sendInboxNotifications to override in order to pass group and get All user within group and loop through to send notification to all.

Thanks

Arun

Arun Patidar
smacdonald2008
Level 10
June 13, 2018

Great answer!