Get URL Attachment from RQ and add to PO

Ash Gajjar contacted me recently with an interesting question. Could he get the URL for an attachment from a requisition and add that to the purchase order created from that requisition? Of course, I assured him. Now came the matter of how.

I offered Ash a solution with two methods of achieving that solution - use Design Studio when the PO was released to perform a DME on the PO Line Source Record, use the getattachrec.exe CGI to retrieve the URL Attachment, parse that for the actual URL value and then writeattach.exe to add it to the PO.

Ash chose the 2nd method I suggested and is using ProcessFlow to perform this solution. I have an old posting on how to get comments but the values are a little different when you want the URL Attachment instead of a standard comment.