SubbaReddy,
If you remove the ref attribute, then I believe you will need to employ a more elaborate approach to make the relationship mandatory, which would involve external logic using either RIH, LCA, Lambda triggered from an event coming from the entity. The logic would fetch the entity, do a query to see if the relationship you wish already exists and if not, would take an action to advise the user or calling application that the entity still needs a relationship. E.g. you could create a boolean attribute perhaps called "Needs Relationship?" which is set by the external logic dynamically each time the logic checks for the existence of the proper relationship. By using an attribute for this purpose, the user or calling app can easily then query all the entities for any where the attribute is TRUE.
Interested to see what other ideas the community has.
------------------------------
Curt Pearlman
------------------------------
Original Message:
Sent: 12-28-2023 10:00
From: SubbaReddy R
Subject: Relation Ship Mandatory for an entity
Thanks Joel,
But our plan is to remove the reference attribute if it is possible to make the relationship mandatory
Thanks,
SubbaReddy.
------------------------------
SubbaReddy R
Paccar
Original Message:
Sent: 12-22-2023 13:12
From: Joel Snipes
Subject: Relation Ship Mandatory for an entity
Hi SubbaReddy,
A few options to look into
- Create a reference attribute of the relationship and make the reference attribute mandatory. This will make the relationship mandatory in the UI but not the API.
- Create a reference attribute of the relationship and use a Data Validation Function to make the attribute mandatory. Set the LCA hook to "beforeSave" and it will be enforced by the API
------------------------------
Joel Snipes
Intel
Savannah GA
Original Message:
Sent: 12-20-2023 07:22
From: SubbaReddy R
Subject: Relation Ship Mandatory for an entity
Hi Team,
Can we make relationship as mandatory for any entity.
Thanks,
SubbaReddy
Paccar
------------------------------
SubbaReddy R
Paccar
------------------------------