Service Desk Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Attachment to Servicecall

Highlighted
Sam K
Super Collector

Attachment to Servicecall

Hi,

I tried to attach file to servicecall using api. It throws the exception in the line attach.addAttachedItem(newAttach); Here is the exception: java.lang.RuntimeException: Error when put file "filename" to attachment server: java.io.FileNotFoundException: "filename" (The system cannot find the path specified)

Can anyone tell where it search the file?

Thanks.
2 REPLIES
Tim Schmitt_4
Frequent Visitor

Re: Attachment to Servicecall

I think that the application server needs to have access to the attachment in order for this to work in the Web API, although I'm not sure if this changed recently.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=211076&admit=-682735245+1164825701739+28353475
Sam K
Super Collector

Re: Attachment to Servicecall

Hi,

Thanks. Your reply was helpful. I tried with Example9.java. but we are not using JSP. so not able to write file to server through output stream.

Can anyone tell how to achieve attachment using FTP? I don't have latest doc for HPSD web-api.

Thanks,
Sam
//Add this to "OnDomLoad" event