Foren

Retrieve the activityId of a social activity upon creation - LR 6.1

Dileep Shiva, geändert vor 11 Jahren.

Retrieve the activityId of a social activity upon creation - LR 6.1

New Member Beiträge: 2 Beitrittsdatum: 04.03.11 Neueste Beiträge
Hi,

In LR 6 SP1, we persisted custom activities using SocialActivity activity = SocialActivityLocalServiceUtil.addActivity(user.getUserId(), user.getGroup().getGroupId(), CUSTOMACTIVITY.class.getName(), 0, 1, scope, 0);. Then, using the SocialActivity.activityId, we persisted more details about the custom activity in a different table.

In LR 6.1, SocialActivityLocalServiceUtil.addActivity() doesn't return a SocialActivity object. So, I'm wondering if there is a way to retrieve the activity id of the added social activity.

Any help is greatly appreciated.

Thanks,
Dileep