This could be similar to the current SETFORMATTRIBUTES() function, where you would pass the data name of the record link field and an config object to make the updates.