I am trying to use a create new record action to insert a new record into my table and based on the grid I am showing to the user they only can see records associate to an related record. I would like to be able to pass in the primary key for that parent record into the record action so I can default that field to use that value and not allow the user to associate to a different parent on accident. It is possible that there is not data in the grid but I would still know the primary key of the parent record to pass in.
Discussion posts and replies are publicly visible
In the child Record Action interface, simply reference ri!parentFieldName (where parentFieldName is the relationship field) and set value: ri!parentFieldName, editable: false().