Not sure if I should be posting this in Infor Developers or here - so doing both
I'm trying to work out how to email documents in IDM via a button-push in CSI. This is to replace the old Doc-Trak "Hold in Drafts" feature.
In MT Cloud the Related Information widget allows the user to review the doc as they would have done previously in Outlook, but the Email button on the widget requires the user to enter distibution list, subject and body text manually. I'd like to replace that with a pushbutton on the CSI form.
The Email API call needs the following info, most of which can be sourced from within CSI:
<?xml version="1.0"?>
<emailMessage xmlns="">http://infor.com/daf">
<to>string</to>
<cc>string</cc>
<bcc>string</bcc>
<subject>string</subject>
<body>string</body>
<attachments>
<file>
<pid>string</pid>
<filename>string</filename>
<mimetype>string</mimetype>
<base64>string</base64>
<xquery>string</xquery>
</file>
</attachments>
</emailMessage>
The bit which has me foxed is the attachment section. The documentation in Infor OS doesn't make clear whether all the elements need to be populated, or whether they are multiple ways of achieving the same end. I know how to get the pid of the document via the Items/Search/item API call (and the filenames and mimetypes for pdf/preview/thumbnail/etc are included in the response body). The Xquery is what I would have used in the Items/Search/item call. The bit I can't see an obvious way to get through the API is the base64 string.
However, noticing the xquery element made me wonder if I am overcomplicating matters. After all why send the Xquery again when you already know the pid? (unless that's for the Related Documents?)
Can anyone advise?
Thanks