Jump to content
Sign in to follow this  
nooblet

Webservices ChangeStatus

Recommended Posts

Hi Guys,

been a while since I had anything to post about !!!!!

I have done numerous webservice calls before but im having trouble using the changestatus method... and i dont see anything about it in the WIKI

The changestatus method is supposed to emulate the action of an Activity->Update status function on USD

the requirement for the method is as follows:

ws.changestatus(sid, creatorhandle, objecthandle, description, newstatushandle)

now my problem is i dont think im sending the correct status handle... I get an "invalid" error when executing it.

i tried as follows (not the real cnt handle or request handle, just demoing):

ws.changestatus(sid, "cnt:12345678", "cr:12340", "this is to change the status....", "crs:2001")

i reckon that my handle for the status is incorrect but i have no idea what should be used there... i have tried numerous options, id/persid/code but to no avail

please help !

  • Like 1

Share this post


Link to post
Share on other sites

Remember that status in tickets is referenced with the CODE field (RE, CL, OP, HOLD, ACK, etc...).

Try this:

ws.changestatus(sid, "cnt:12345678", "cr:12340", "this is to change the status....", "RE")

Where RE is the status code of Resolved.

  • Like 1

Share this post


Link to post
Share on other sites

nope :(

still getting an error, here is the call:

 ws.changeStatus(sid, "cnt:793ED69B4E87A545BD8E911834D829FC", oldRequestHandle, "Change Status to Work In Progress", "WIP")

Share this post


Link to post
Share on other sites

You can use the updatObject method to accomplish the same..

ws.updateObject(sid, "cr:12340", attrVals, attributes)

Pass Attribute name and value to attrVals (Eg: For status --> CL).

Edited by Neo

Share this post


Link to post
Share on other sites

N@irb here is the error i get:

Message="Internal err with generic_status_change: NOT FOUND"

I thought of doing that Neo, just havent gotten there yet ;) thanks

Share this post


Link to post
Share on other sites
N@irb here is the error i get:

Message="Internal err with generic_status_change: NOT FOUND"

I thought of doing that Neo, just havent gotten there yet ;) thanks

I am getting this same error except mine says "Unknown value for status"

tried the following:

CL

cl

CLOSE

close

crs:CL

Share this post


Link to post
Share on other sites

Ok so since i didn't know the close code, i just looped through and found the code.

CLOSE = "crs:5201"

ws.changestatus(sid, "cnt:12345678", "cr:12340", "this is to change the status....", "crs:5201")

Edited by Gityerfix

Share this post


Link to post
Share on other sites

"cr:12340" = Persid of the ticket...comes from the Call_Req table

"crs:5201" = Persid of the status value...comes from the Cr_Stat table

Share this post


Link to post
Share on other sites
"cr:12340" = Persid of the ticket...comes from the Call_Req table

"crs:5201" = Persid of the status value...comes from the Cr_Stat table

:ph34r:

Wow! Thanks you !!!!!

Share this post


Link to post
Share on other sites

can anyone help me in getting status value for the other options like

open , resolved, close, work in progress, acknowledge, hold. 

Is their any proper document for this. If yes please guide me to that.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...