Modifying Reference Attributes
Modify any attribute of an entity.
If you modify any attribute of an entity (for example, Location
), the
API sends an ENTITY_CHANGED
event to external queues for all entities
(HCP and HCO), where entity (Location
) is a refEntity
for ref.attributes
.
The behavior occurs as follows:
- If you change a non-referenced attribute in entities or relations,
ENTITY_CHANGED
andRELATION_CHANGED
are not sent to all related entities. This occurs only for the entity you change. - If you change a referenced attribute in entities or relations,
ENTITY_CHANGED
andRELATION_CHANGED
are sent to all related entities.
For example, if there are 10 HCPs with the same Location, the results are as follows:
- If you change a non-referenced attribute (for example,
Neighborhood
) the platform sends only oneENTITY_CHANGED
to theLocation
entity. - If you change a referenced attribute (for example, AddressLine1) the platform sends
11
ENTITY_CHANGED
events to theLocation
and all related HCPs.