Foren

How to fill up PayLoad field in UserNotificationEvent

Cesar Quinteiro, geändert vor 11 Jahren.

How to fill up PayLoad field in UserNotificationEvent

Junior Member Beiträge: 34 Beitrittsdatum: 18.10.11 Neueste Beiträge
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