writeattachrec is being replaced by AddAttachment. I found documentation on how to use it in a webrun node in IPA. Could not find any example of use in Design Studio. After some trial and error got this to work -
function AddComment() { var vXMLData = 'Title55Message55'; var vURL = "http:///lawson-ios/action/AddAttachment"; var xhr = new XMLHttpRequest(); xhr.open("POST", vURL, true); xhr.setRequestHeader('Content-Type', 'text/xml'); xhr.send(vXMLData); // to check for errors etc var vResponse = xhr.responseText; }
Will try an attachment -