There's an API call being made by an external WMS system to NS. The API sends a JSON message with item stock level changes, I have created a RESTlet that will allow me to take the JSON data and receive a PO or fulfil an SO. The API has no way to tell me which type of transaction the tranID fied is referring too so I have created this function. This is far from ideal. Is there a way in NS that I can check the type of transaction based on the transaction number so I can load the correct transaction rather than trying multiple loads?