E9.1 Media Object File insert

Ryan...

Member
Hello,

I'm trying to attach a PDF (GTMOTYPE = 1) to a work order, and I currently run Business Functions but I don't have Orchestrator available. I could probably do a direct insert to F00165 but I'd like to use an API.

I've tried MigrateFileToMediaObject from B90CA892 like this:

szNameObject = 'GT4801A'
GenericTextKey = The WO Number
szGTFileName = '\\server\share\folder\filename.pdf'
szInputQueueName = ''


It errors with "A Valid Input Queue Must Be Provided for Attachment". I'm tangently aware that in this context, "queues" are just folders that prefix the URL right? They don't seem to be in use as every other attachment in the 165 table has GDQUNAM blank.

This function also has the odd date format for EnteredDateTime and ModifiedDateTime that don't default so it's a little weird.

Is there a better function or am I just using this one wrong? Thanks for your help.
 
Last edited:
Back
Top