Unfortunately it appears the documentdata attribute is not populated. The call getString("DOCUMENTDATA") did not throw an error, so it recognizes the attribute. doclinksMboSet = mbo.getMboSet("DOCLINKS") if not doclinksMboSet.isEmpty(): doclinkMbo = doclinksMboSet.moveFirst() if doclinkMbo is...
Hi Jose, If your script is for object WORKORDER, your MBO is the open work order. So getting the DOCLINKS relationship, you'll get all attachments, and for each of them, you can get the DOCUMENTDATA field. For instance: doclinksMboSet = mbo.getMboSet("DOCLINKS") if not doclinksMboSet.isEmpty():...
The reason for using the autoscript is there is an existing script that creates and sends the json message, and now they want linked docs attached to the message. So I'm trying to develope the "get linked docs" in a seperate script, which I will integrate into, or call from, the original script....
Hi Jose, Maybe it's a silly question, but why are you trying to get the attachment with an automation script if you need to send it to an external system? Why not create an Object Structure with the main table Asset and the Doclinks tables, an External System, and a Publish Channel? Using OOTB...
I'm trying to send any linked documents on a Maximo record to an external system, via a Maximo 7611 autoscript. The document has to be sent as a Base64 encoded string. I've configured Maximo as per Downloading attachments based on doctypes using API Downloading attachments based on doctypes...
getDocLinks Script.txt
Contact us with questions or feedback.
Join CommunityInvite ColleaguesLearn MoreGet Started on MORE
About UsTerms of Use