• zapier
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies

Here is a field extracted from the REST API endpoint (xx.salesforce.com/services/data/v23.0/sobjects/xx/describe):

 

{
   "length":0,
   "name":"ActivityDate",
   "type":"date",
   "defaultValue":null,
   "label":"Due Date Only",
   "updateable":true,
   "precision":0,
   "scale":0,
   "controllerName":null,
   "byteLength":0,
   "unique":false,
   "calculated":false,
   "nameField":false,
   "sortable":true,
   "filterable":true,
   "nillable":true,
   "caseSensitive":false,
   "inlineHelpText":null,
   "writeRequiresMasterRead":false,
   "externalId":false,
   "idLookup":false,
   "createable":true,
   "soapType":"xsd:date",
   "autoNumber":false,
   "restrictedPicklist":false,
   "namePointing":false,
   "custom":false,
   "defaultedOnCreate":false,
   "deprecatedAndHidden":false,
   "htmlFormatted":false,
   "defaultValueFormula":null,
   "calculatedFormula":null,
   "picklistValues":[

   ],
   "dependentPicklist":false,
   "referenceTo":[

   ],
   "relationshipName":null,
   "relationshipOrder":null,
   "digits":0,
   "groupable":true
}

 

When POSTing an Object using the REST API, we are given an error "Field ActivityDate Required" if we do not include the above field.

 

My question: from the definition above, what is the correct logic to decide if any individual field is required or not when creating new Objects?

  • October 30, 2012
  • Like
  • 0

Here is a field extracted from the REST API endpoint (xx.salesforce.com/services/data/v23.0/sobjects/xx/describe):

 

{
   "length":0,
   "name":"ActivityDate",
   "type":"date",
   "defaultValue":null,
   "label":"Due Date Only",
   "updateable":true,
   "precision":0,
   "scale":0,
   "controllerName":null,
   "byteLength":0,
   "unique":false,
   "calculated":false,
   "nameField":false,
   "sortable":true,
   "filterable":true,
   "nillable":true,
   "caseSensitive":false,
   "inlineHelpText":null,
   "writeRequiresMasterRead":false,
   "externalId":false,
   "idLookup":false,
   "createable":true,
   "soapType":"xsd:date",
   "autoNumber":false,
   "restrictedPicklist":false,
   "namePointing":false,
   "custom":false,
   "defaultedOnCreate":false,
   "deprecatedAndHidden":false,
   "htmlFormatted":false,
   "defaultValueFormula":null,
   "calculatedFormula":null,
   "picklistValues":[

   ],
   "dependentPicklist":false,
   "referenceTo":[

   ],
   "relationshipName":null,
   "relationshipOrder":null,
   "digits":0,
   "groupable":true
}

 

When POSTing an Object using the REST API, we are given an error "Field ActivityDate Required" if we do not include the above field.

 

My question: from the definition above, what is the correct logic to decide if any individual field is required or not when creating new Objects?

  • October 30, 2012
  • Like
  • 0