The addAttachment
actor-chain allows an agent to add an attachment to an e-mail.
Parameter | Description |
---|---|
| The window ID of the attachment. |
| The file conversion string. |
| The content type of the file to attach. |
| The size of the file to attach. |
| The name of the file to attach. |
| The location of the temporary directory where the attachment is stored. |
| The name that will be displayed for the attachment. |
Add Attachment Example
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" -d "{ \"windowId\" : \"1\", \"fileAsString\" : \"LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tL S0xMDU3MDczMDI5NjAxNTY2MTEzNjkyMDY4MTQNCkNvbnRlbnQtRGlzcG9zaXRpb246IGZvcm0tZGF0YTs gbmFtZT0iX2R5bmNoYXJzZXQiDQoNClVURi04DQotLSS0tLS0tLS0tLS0tMTA1NzA3MzAyOTYwMTU2NjEx MzY5MjA2ODE0LS0NCg==\", \"contentType\" : \"multipart/form-data; boundary=-------- --------105707302960156611369206814\", \"fileSize\" : \"40\", \"fileName\" : \"copyofinvoice\",\"tempDir\" : \"/home/order/invoice/\", "attachmentDisplayName" : \"Copy of Invoice\" }" "http://localhost:8180/rest/ model/atg/svc/agent/ui/formhandlers/RespondEmailActor/addAttachment"