Skip to main content
Version: 5.7.0

GetSharedEntityForProfileId

Method returns a shared entity for the given profile and entity ID.

An entity is shared if its ACL allows for the currently logged in user to read the data.

ServiceOperation
entityREAD_SHARED_ENTITY

Method Parameters

ParameterDescription
targetProfileIdThe profile id to retrieve shared entities for
entityIdThe ID of the entity that will be retrieved

Usage

http://localhost:3000
string targetProfileId = "profile1";
string entityId = "someEntityId";
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.EntityService.GetSharedEntityForProfileId(targetProfileId, entityId, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"entityId": "544db68a-48ad-4fc9-9f44-5fd36fc6445f",
"entityType": "publicInfo",
"_serverTime": 1637946319239,
"version": 1,
"data": {
"name": "john",
"age": 30
},
"acl": {
"other": 1
},
"createdAt": 1395943044322,
"updatedAt": 1395943044322
}
}