AddAttachment

This service creates a new attachment.

URL (general format)

SERVER:PORT/lawson-ios/action/AddAttachment

Required Parameters

Parameter Key Value Type Parameter Description
dataArea Alphanumeric string The data area where the attachment is stored
filename Alphanumeric string The file name where the attachment is stored
indexName Alphanumeric string The index used to find the attachment
attachmentCategory C or U only (comment or URL) The category of the attachment
Kxx Alphanumeric string The keys of the attachment. Individually specify using increasing numbers, K1=XX K2=YY K3=ZZ
attachmentType Alphanumeric string User defined attachment type. (Use return from ListAttachments.)

Example URL

SERVER:PORT/lawson-ios/action/ChangeAttachment

Additional information

Example POST data:

SERVER:PORT/lawson-ios/action/AddAttachment
<ACTION>
<ATTACHMENT dataArea="PROD" fileName="EMPLOYEE" indexName="INDEX1" attachmentCategory="C" K1="XX" K2="YY" K3="ZZ" 
  lIndex="MM" attachmentNbr="XY" attachmentType="O">
<ATTACHMENT-NAME>the name</ATTACHMENT-NAME>
<ATTACHMENT-TEXT>the text</ATTACHMENT-TEXT>
</ATTACHMENT>
</ACTION>

Deprecated CGI information

The AddAttachment service replaces some functionality of the CGI: writeattach.exe

CGI URL: SERVER:PORT/cgi-lawson/writeattachrec.exe?_PDL=PROD&_FN=EMPLOYEE&_IN=INDEX1&_ATYP=C&K1=XX&K2=YY&K3=ZZ&_KS=KY&_AK=XY&_OPM=D

CGI parameters AddAttachment equivalents
_PDL dataArea
_FN filename
_IN indexName
_ATYP attachmentCategory
Kxx Kxx
_AUDT attachmentType