Hi!
Here is an interesting behavior of the data in the fields, while changing the visibility of some of the essence (persona for example). In a typical situation when the permissions to visibility are not limited, the field looks like this.
"person_id": {
"name": "test name",
"email": [
{
"label": "work",
"value": "email@gmail.com",
"primary": true
}
],
"phone": [{"value": "", "primary": true}],
"value": 7
},
"active_flag": true,
"person": {
"id": 7,
"company_id": 22222,
"owner_id": {
"id": 1111,
"name": "Integrations team",
"email": "email@gamil.com",
"has_pic": true,,
"active_flag": true,
"value": 22222
},
If you hide a person from the user, it will look like this.
"person_id": 55,
"active_flag": true,
"person": [],
In this case, fields is problematic to interpret uniformly. Are there any recipes for working with this?