Getting the list of Notifications inbox items

lir

28-03-2019

Hi,

I need to programmatically pull the list of AEM inbox notifications of a user, with the purpose of sending them a reminder (via email) of the workflow steps waiting for them to take action on.

Can someone please send some hints, or sample code on how to get the list of inbox items.

Thank you

Replies

Highlighted

manasid69383774

28-06-2019

Thanks shunnar

I tried to customize /libs/cq/workflow/components/inbox/list/json.jsp. But the changes are reflecting only on Classic UI but not on Touch UI. I am working on AEM 6.4.3.

Highlighted

vijkumar

30-06-2019

The logic to fetch or create data for TouchUI inbox is not at the front end as in case of classicUI but at the Java side. below is the basic flow:

-A request to '/aem/inbox' resolves to path '/libs/cq/inbox/content/inbox'

-This renders data per [1] which creates the html page per [2]

-At the same time [1] triggers a get request to fetch the data for the inbox page [3] which is handled by a servlet [4] and used by [2] to create the complete inbox page

-Further on logic goes to [5] and [6] to fetch the data per the logic

[1] /libs/cq/inbox/content/inbox/jcr:content/views/list/datasource

[2] /libs/cq/inbox/gui/components/inbox/inboxitem/list/list.html

[3] cq/inbox/gui/components/inbox/datasource/itemsdatasource

[4] com.adobe.cq.inbox.impl.servlet.ItemsDataSourceServlet.java

[5] com.adobe.granite.workflow.core.WorkflowSessionImpl.java

[6] com.adobe.granite.workflow.core.jcr.WorkItemManager.java

Highlighted

harishred

09-03-2020

Hello @lir , were you able to get this working. I am in a similar situation and wondering if you can point me in right direction .