Hello Experts
Can a mandatory or any other rule be written for the many to many field?
Thanks
Cybersecurity
DevOps Cloud
IT Operations Cloud
If an answer to your question is correct, click on "Verify Answer" under the "More" button. The answer will now appear with a checkmark. Please be sure to always mark answers that resolve your issue as verified. Your fellow Community members will appreciate it!  Learn more
Hello Experts
Can a mandatory or any other rule be written for the many to many field?
Thanks
Hello
MANY2MANY is a relationship, not a field. You can write a validation rule to check if there is at least one element in the collection, but please note, adding and removing relationships is an asynchronous task, it will not be part of the same transaction as the actual record update.
Hello
So, as I understood, I can check the Many2Many section if there is at least one element selected.
if that right, can you provide me an example or the way to check this section.
Thanks in advance