Subworkflow – Remove WRLC Retention

This subworkflow removes WRLC retention commitments from a specified item by clearing retention-related fields in Alma for a given barcode and institution.

At a glance


Why this exists

WRLC retention commitments are recorded at the item level in Alma. When a retention commitment needs to be removed (for example, as part of a broader retention management process), this subworkflow standardizes how those fields are cleared.

By isolating this logic into a reusable subworkflow, parent workflows can remove retention data consistently across institutions without duplicating code.


What it does


Where it runs


How it works

Logic overview

1. Trigger (Subworkflow Execution)

If these fields are missing, the workflow will fail or route incorrectly.


2. Preserve Input

The “Stash barcode” code node:

This ensures error reporting in the parent workflow can reference the original input values.


3. Route to Correct Institution

The Alma Network node:

⚠️ If _institutionCode is incorrect or missing, the update may fail or affect the wrong IZ.


4. Retrieve Item


5. Remove WRLC Retention Fields

The “Remove WRLC Retention Code” node modifies:

⚠️ Important behaviors:

If Alma’s API structure changes, this logic may break.


6. Update Item


If results exist
If no results

Artifacts produced


Revision #2
Created 19 February 2026 20:16:45 by Jackie Saavedra
Updated 19 February 2026 20:32:14 by Jackie Saavedra