I have created a library function for a custom entity(obligation) in CRM 7.1.d. The upload works fine and the record is created in either the opportunity library or the lead library, depending on which entity it belongs to.
I would like to use a table level script (or something similar) to update the libr_obligationid to the relevant record so that I can see the list of library items on the custom entity documents tab.