Avatar

trouble update status ?

NewTum Channel

I have trouble update status.

Example :

https://developer.kintone.io/hc/en-us/articles/213149747/#statusofrecord

https://developer.kintone.io/hc/en-us/articles/360000334541-Update-Statuses

Error :  "message":"Failed to update the status. The settings or the status itself may have been changed by someone."

I need help.

var update = {
"app": 9573,
"id": 3,
"action": 'Completed'
}

kintone.api(kintone.api.url('/k/v1/records/status', true), 'PUT', body, function(resp) {
//success
console.log("success : "+JSON.stringify(resp));
}, function(error) {
//error
console.log("error : "+JSON.stringify(error));
});

Follow 2 followers
0

2 comments

Avatar
Yuzo Arai 1 vote

Hello NewTum,

There are two possibilities for you to see this error.

1) The action that you specified is incorrect.
You need to specify the action name, not the status name.
For example, in the default state, the action name of the status "Completed" is "Complete," so you need to specify "Complete" in the program.

2) The status that you want to change is not supported by the record's current status.
For example, the default state of the statuses is:
Not started > In progress > Completed

You can't change the status to "Completed" when it is still in "Not started."
The only status you can change from "Not started" is to "In progress."

I hope this helps,
Chris

1
Comment actions Permalink