• Sornakumar Sundararajan
  • NEWBIE
  • 0 Points
  • Member since 2015

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

When a new record is inserted in an object, is the generated ID of the the new record guarenteed to be greater than a older record? 

Thanks!
Hi,
I am using the Force.com REST API. Whenever I do a GET on a particular object, I don't get an ETag. Does Force.com REST API support ETags? If so, is there some documentation on how to go about using this?

Thanks, Sornakumar
Hi,
I am using the Force.com REST API. Whenever I do a GET on a particular object, I don't get an ETag. Does Force.com REST API support ETags? If so, is there some documentation on how to go about using this?

Thanks, Sornakumar

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