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
Sagar Hinsu 11Sagar Hinsu 11 

how to find "Required Field" through describe Field API

Hii,
I want required field through API
"https:\\<instance-url.salesforce.com/services/data/v26.0/sobjects/<object_name/describe/"
The json response is.
{
      "autoNumber": false,
      "byteLength": 0,
      "calculated": false,
      "calculatedFormula": null,
      "cascadeDelete": false,
      "caseSensitive": false,
      "controllerName": null,
      "createable": false,
      "custom": false,
      "defaultValue": null,
      "defaultValueFormula": null,
      "defaultedOnCreate": true,
      "dependentPicklist": false,
      "deprecatedAndHidden": false,
      "digits": 0,
      "displayLocationInDecimal": false,
      "externalId": false,
      "filterable": true,
      "groupable": false,
      "htmlFormatted": false,
      "idLookup": false,
      "inlineHelpText": null,
      "label": "Created Date",
      "length": 0,
      "name": "CreatedDate",
      "nameField": false,
      "namePointing": false,
      "nillable": false,
      "permissionable": false,
      "picklistValues": [],
      "precision": 0,
      "referenceTo": [],
      "relationshipName": null,
      "relationshipOrder": null,
      "restrictedDelete": false,
      "restrictedPicklist": false,
      "scale": 0,
      "soapType": "xsd:dateTime",
      "sortable": true,
      "type": "datetime",
      "unique": false,
      "updateable": false,
      "writeRequiresMasterRead": false
    },

by which jsonObject we can know that this field is required?
Thank You.
RAM AnisettiRAM Anisetti
if "nillable" is false then that one is required field.

for reference https://developer.salesforce.com/forums/?id=906F00000008qYdIAI
Sagar Hinsu 11Sagar Hinsu 11
I know the  most lemon question of the universe.
I have made a vf page for entering the data and some field we have made requried on Visual Force page only.
Can I get to know that which fields are required at VF page through API.
I know its not possible but for certain requirement I cannot make those fields required but I have to make it required at VF page only.
Thank You.