Fórum

How to fill up PayLoad field in UserNotificationEvent

Cesar Quinteiro, modificado 11 Anos atrás.

How to fill up PayLoad field in UserNotificationEvent

Junior Member Postagens: 34 Data de Entrada: 18/10/11 Postagens Recentes
I am able to create a UserNotificationEvent using
UserNotificationEventLocalServiceUtil.addUserNotificationEvent(userId, "6_WAR_soportlet", timestamp, deliverBy , payload, archived, serviceContext) ;


but I don't know exactly what to put in "payload"

I know that for a ContacPortlet I can use:

{"title":"<a href="\&quot;http://localhost:8080/c/my_sites/view?groupId=10198&amp;privateLayout=0\&quot;">Test Test&lt;\/a&gt; would like to add you as a connection.","requestId":2,"userId":10195,"portletId":"1_WAR_contactsportlet"}
</a>


but How I fill is I want to communicate my own portlet? Is there any Doc about this?

Exactly What I want to achieved is that once you get the notification, then you press on it and then open a custom protlet with some params