Expand my Community achievements bar.

publisherID in a SharedCollection

Avatar

Level 3

Is there a way to access the publisherID in a shared collection?

I can only seem to get the items in an event eg. event.items[0].propertyName

Thanks

4 Replies

Avatar

Former Community Member

Hi,

SharedCollection is List of shared items. What you mean by publisherID of collection? Different users can publish(ADD) items in a shared collection.

In onItemReceive , you can do a event.item.publisherID to get the publisherID of any particular item.

Hope this helps.

Thanks

Hironmay Basu

Avatar

Level 3

Yeah I know. How do you get the publisherID for each item?

Avatar

Former Community Member

You'll have to do like what Hironmay is saying - listen for all the items coming in and store their publisherIDs somewhere (an object hashtable which uses the unique ID of your items would work). Likewise, if publisherID is an important piece of data which each item should have, then you could add that to the item payload.

nigel

Avatar

Level 3

Thanks - that's what I did. Just wanted to confirm that there was no other

way.