Steve Endow is back with an option to Extract and Save Dynamics GP Document Attach Files Using .NET
Dynamics GP Land: Extract and Save Dynamics GP Document Attach Files Using .NET
Archived post from 2017. Dynamics GP and the links it points to have changed since; check current documentation before relying on version-specific steps.