update_lrel
This method allows to create or delete lrel relation
Definition:
update_lrel( int, string, string, int, int, ... ) ;
int - operation type: 0 = add relation; 1 = delete relation
string - persistent_id of the object that contains lrel relationship
string - name of the lrel attribute
int - override lock
int - defines which parameter from this parameter is first that defines attribute name, usually 0 (zero means that next parameter contains first attribute name to update)
... - persistent_id of object to relate
working example:
send_wait(0, top_object(), "call_attr", "api", "update_lrel", 0, "chg:429903", "asset", 1, 0, "nr:8B0E0521F447724EAF8BAAE0DE5936C3";