Service Desk Practitioners Forum
cancel

Webapi fucntion "addAttachedItem" fails in SD45 SP20

Highlighted
Nedachin Dmitri
Honored Contributor.

Webapi fucntion "addAttachedItem" fails in SD45 SP20

Hello,
We developed a procedure that allows to insert attachments into ServiceCalls from standart Service Desk Web interface of creating Service Calls.
This procedure worked fine in SP 17 until we've implemented SP20 - now it returns an error "java.lang.RuntimeException: You are not allowed to view this service call or this may have been deleted by another user" on method "addAttachedItem(nItem);"

Did anyone meet such issue?
Thanks,
Dmitriy
5 REPLIES
Manivasakam
Respected Contributor.

Re: Webapi fucntion "addAttachedItem" fails in SD45 SP20

Hi,
We are also getting the same error after upgraded to SP20 in change attachment function. Is this issue have been resolved? can you share relevant informations?
Thanks,
Mani.
Nedachin Dmitri
Honored Contributor.

Re: Webapi fucntion "addAttachedItem" fails in SD45 SP20

Hello,
i've got an answer from HP that default example "Example9.java" worked in SP20.

Now we're trying to test it.
Dmitriy
Nedachin Dmitri
Honored Contributor.

Re: Webapi fucntion "addAttachedItem" fails in SD45 SP20

Hello,
It seems that attachment worked only in existing Service Calls, so you need to save SC first, and than assign attachment.

Dmitriy
Manivasakam
Respected Contributor.

Re: Webapi fucntion "addAttachedItem" fails in SD45 SP20

Hi,

We did observed the same. We have modified the example9.java with create new item first and than assign attachment, even this action is failing again with same error. Mailed HP with results. waiting to hear from them.

Mani.
Nedachin Dmitri
Honored Contributor.

Re: Webapi fucntion "addAttachedItem" fails in SD45 SP20

workaround - attachments created by WebAPI only in existing (saved before) Service Calls