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

Issue: creating workorders for servicecall through web API

Highlighted
anilyadav
Acclaimed Contributor

Issue: creating workorders for servicecall through web API

Hi
We have HPSD 4.5 with SP13. Here we have IVR integration for creating Servicecall.
Next a DB rule invokes webAPI function to create two workorders (the workorders are linked to a DUMMY change), and respective approval votes, and add the workorder to the servicecall and create Successor Predecessor relationship.
Out of 10 cases, it works fine for 7-8 cases, but gives following error message for 2-3 cases when it tries to add workorder to the servicecall using servicecall.addWorkorder(workorder):
---------------------
"java.lang.RuntimeException: Item cannot be saved, because another user has chang
ed it after you opened it.
<>"
-----------------------
Pls find the .java file attached.
Request help if someone has faced similar issues.

Best Regards
Anil Yadav
Email: anil_0207@yahoo.com
2 REPLIES
Siekierko Przem
Super Collector

Re: Issue: creating workorders for servicecall through web API

Hi !
I had this problm too.
You can try something like this:
workorder.setServicecall(servicecall);

Best Regards
Przemyslaw Siekierko
anilYadav_1
Acclaimed Contributor

Re: Issue: creating workorders for servicecall through web API

Dear Przemyslaw,

Even this is giving giving the same error.But this time it is happening while adding the 1st workorder.

Best Regards
Anil
//Add this to "OnDomLoad" event