I need to create a new record when creating or updating an existing record:
1. Created a new record with the status "in progress" -> create a related entry with the specified fields
2. Updated status "in progress" of an existing record -> create a related entry with the specified fields
3. Updated a record for which a linked record has already been created -> update some fields of a related entry
To implement point 3, I need to check for the existence of a related entry. How do I check for the existence of a related entry?
1. Created a new record with the status "in progress" -> create a related entry with the specified fields
2. Updated status "in progress" of an existing record -> create a related entry with the specified fields
3. Updated a record for which a linked record has already been created -> update some fields of a related entry
To implement point 3, I need to check for the existence of a related entry. How do I check for the existence of a related entry?
Comment