Start a new topic
Answered

how to retreive creator id from the collection ?

Hello everyone, 

I'm trying to get the id of creator of some entities in my collection to make clustering of the data for each user but I couldn't retrive that id 
Does anyone has an idea about that ? 

Thanks 
Regards 


Best Answer

I made a mistake in the syntax I should have write  

collection_name._acl.creator

 not  

collection_name.acl.creator

Now I can retreive creator id :) 
 Thank you For the support


Answer

I made a mistake in the syntax I should have write  

collection_name._acl.creator

 not  

collection_name.acl.creator

Now I can retreive creator id :) 
 Thank you For the support

I retreive the entity from the collection as described in the screenshot 1
then I tried to get the object _acl from the entity or the id of the creator as described in screenshots 2&3 but with the first I got undefined and with the second i got an error. 
I'm using the latest SDK.
Regards,


1 person likes this
Braiek,

  1. Are you getting any error while trying to get the creator id? If yes, please send me the screenshot of it. Also send the timestamp of the failure that will help me while reviewing logs.
  2. What is name and version of the SDK that you are using?
  3. Can you please provide the relevant code snippet that you are using to retrieve the creator id?

Thanks,

Pranav

Kinvey

Login or Signup to post a comment