Automatic Retrieval of document from PDM

Is there a way through API to set up a program that would automaticlly retrieve a item from PDM. I want to make it so if manufacturing scans a part number then the program would automaticly grab the part from EPDM and show a view (edrawings would be the viewer). I can do this through web viewer if needed.

SolidworksSolidworks Pdm enterprise Pdm