@halix/action-sdk
    Preparing search index...

    Function saveRelatedObjectAsObservable

    • saveRelatedObjectAsObservable saves a related object to the database. The objectToSave is saved, and its relationship to the parent object is established based on the relationship specified in the schema. The objectToSave must have a relationship to the parent object and the user must have scope access to the parent object.

      Parameters

      • parentElementId: string

        The ID of the parent element

      • parentKey: string

        The key of the parent object

      • elementId: string

        The element ID of the object to save

      • objectToSave: string

        The object data to save (as a JSON string)

      • Optionalopts: SaveOptions

        Optional save options

      Returns Observable<any>

      Observable resolving to saved object, including any updates made to the object during the save operation (such as assigning an objKey if the object is new), or the assignment of calculated values