Added support for relate fields in update value backend actions #576
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces support for updating values through backend actions for relate fields in SuiteCRM 8. Previously, the system did not support updating these fields, limiting the functionality of working with relationships in modules. With this enhancement, relate fields can now be managed more comprehensively via the backend.
Motivation and Context
The official SuiteCRM documentation previously mentioned that backend value updates were not supported for relate fields. This change aims to extend the current capabilities and ensure that relate fields are also manageable in the backend. This is particularly beneficial when creating custom logic to update the relate field.
Specific Implementation for Relate Fields
To address the limitation of updating relate fields, the backend requires a specific response structure to ensure proper updates. The
run
method in the backend handler must provide the response data in the following format to update relate fields:How To Test This
Example Test:
Types of changes
Final checklist