You need to sign in to do that
Don't have an account?

Which fields are auto-filled when calling new sforce.SObject()?
Let say I am in an s-control, i have a line (Javascript) something like below:
var task = new sforce.SObject("Task");
When I get the task, which fields are auto-filled? (and filled with what values?)
If there a documentation on default values returned by sforce.SObject() for each object type, e.g. Account, Opportunity, Task, etc?
Thanks.
var task = new sforce.SObject("Task");
When I get the task, which fields are auto-filled? (and filled with what values?)
If there a documentation on default values returned by sforce.SObject() for each object type, e.g. Account, Opportunity, Task, etc?
Thanks.
When you make the new sforce.SObject() call, fields which have defaults are "auto-filled".
Go into a picklist field, and you'll see a Default checkbox.
The same applies to other objects (Accounts, Opportunities, etc.).