<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[get custom entities associated to a player at login.]]></title><description><![CDATA[<p dir="auto">Hi,<br />
a player custom entity is not returned event when<br />
"Return User Entities during Authenticate and ReadPlayerState methods"  is enabled in app settings</p>
<p dir="auto">the methods ReadEntity in custom entity api  require and entityId.</p>
<p dir="auto">how  do we read a player custom data (custom entities) ? at login for example ?<br />
thank</p>
]]></description><link>https://forums.getbraincloud.com/topic/87/get-custom-entities-associated-to-a-player-at-login</link><generator>RSS for Node</generator><lastBuildDate>Sun, 15 Mar 2026 17:27:35 GMT</lastBuildDate><atom:link href="https://forums.getbraincloud.com/topic/87.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 16 May 2020 16:37:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to get custom entities associated to a player at login. on Mon, 18 May 2020 10:59:13 GMT]]></title><description><![CDATA[<p dir="auto">Edit . you can get all custom entities  for the current user with the query</p>
<pre><code>{
  "entityType": "[entitytype]",
  "ownerId": "[profileId]",
  "context": {
    "pagination": {
      "rowsPerPage": 50,
      "pageNumber": 1
    },
    "searchCriteria": {
     // other search criteria here
    },
    "sortCriteria": {
      "createdAt": 1
    }
  }
}
</code></pre>
]]></description><link>https://forums.getbraincloud.com/post/287</link><guid isPermaLink="true">https://forums.getbraincloud.com/post/287</guid><dc:creator><![CDATA[gibuspi]]></dc:creator><pubDate>Mon, 18 May 2020 10:59:13 GMT</pubDate></item><item><title><![CDATA[Reply to get custom entities associated to a player at login. on Sat, 16 May 2020 17:17:28 GMT]]></title><description><![CDATA[<p dir="auto">ok, when defining a custon entity you create a field owner  , that you set as an index later in the dasboard.</p>
<pre><code>{
  "owner": "",
  "id": "",
  "code": "",
  "gunType": "basic",
  "ammo": 10,
  "lifes": 3
}
</code></pre>
<p dir="auto">when creating a custon entity , you set the field owner with th current player profileId<br />
then you can retrieve it with a call to GetEntityPage</p>
<pre><code>{
  "entityType": "playerData",
  "context": {
    "pagination": {
      "rowsPerPage": 50,
      "pageNumber": 1
    },
    "searchCriteria": {
      "data.owner": "[current player profileId]"
    },
    "sortCriteria": {
      "createdAt": 1
    }
  }
}
</code></pre>
]]></description><link>https://forums.getbraincloud.com/post/286</link><guid isPermaLink="true">https://forums.getbraincloud.com/post/286</guid><dc:creator><![CDATA[gibuspi]]></dc:creator><pubDate>Sat, 16 May 2020 17:17:28 GMT</pubDate></item></channel></rss>