Fórum

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

Dileep Shiva, modificado 12 Anos atrás.

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

New Member Postagens: 2 Data de Entrada: 04/03/11 Postagens Recentes
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