I have an entity 'Revision' with a n:1 relationship with User as 'revisionApprover' and I try to set the approver by formular but can't get it to work. There is a entity\addLinkMultipleId but I need the same for a 1:n relation so I tried record\relate in both directions. I get always 'true' as response but the Revision is not being updated with that userId on the field defined in the relation.
Setting the id directly is also not available.
What is the supported way to set a n:1 or 1:n relation by formular?
Code:
output\printLine(record\relate('Revision', id, 'revisionApprover', $approverId));
What is the supported way to set a n:1 or 1:n relation by formular?
Comment