function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
HowardKatzHowardKatz 

API-created task showing up with "Cancelled" status

Hello,

My application uses the partner API (v7)to create tasks. I have a customer who is reporting that the tasks that are created are showing up with the field Status set to "Cancelled".  I cannot reproduce his problem, and I don't even see "Cancelled" as a possible value for Status in the picklist in my Developer Account.

I do not set the "Status" field at all. In my tests, the tasks I create show up with Status="Not Started"

Any ideas what could be causing this?

Thanks,
Howard
Ron HessRon Hess
I suspect the customer has the status field defaulting to this value.  
HowardKatzHowardKatz
Unfortunately, that's not it. He's sent me a screen image to confirm.

He has renamed "Not Started" to New and that's the default.

As my API call doesn't do anything with the field, I'm thinking there's maybe a bug on the SFDC side.

Anyone have an idea?
SuperfellSuperfell
If you goto setup and look at the picklist definition, you'll see that you can pick one of the picklist values to be the default, this will be the default value applied to this field if you don't specify it in your api call.
HowardKatzHowardKatz
As I mentionned above, the default iStatus s currently set to "New" for this company, yet tasks are showing up with "Cancelled" status which the user created and added to the picklist.


SuperfellSuperfell
Is there a workflow field update that's changing it ?