Snippets

Surinder Bhomra Salesforce Object Field Class Objects

Created by Surinder Bhomra
public class ObjectField
{
    [JsonProperty("aggregatable")]
    public bool Aggregatable { get; set; }

    [JsonProperty("autoNumber")]
    public bool AutoNumber { get; set; }

    [JsonProperty("byteLength")]
    public int ByteLength { get; set; }

    [JsonProperty("calculated")]
    public bool Calculated { get; set; }

    [JsonProperty("calculatedFormula")]
    public object CalculatedFormula { get; set; }

    [JsonProperty("cascadeDelete")]
    public bool CascadeDelete { get; set; }

    [JsonProperty("caseSensitive")]
    public bool CaseSensitive { get; set; }

    [JsonProperty("controllerName")]
    public string ControllerName { get; set; }

    [JsonProperty("createable")]
    public bool Createable { get; set; }

    [JsonProperty("custom")]
    public bool Custom { get; set; }

    [JsonProperty("defaultValue")]
    public object DefaultValue { get; set; }

    [JsonProperty("defaultValueFormula")]
    public object DefaultValueFormula { get; set; }

    [JsonProperty("defaultedOnCreate")]
    public bool DefaultedOnCreate { get; set; }

    [JsonProperty("dependentPicklist")]
    public bool DependentPicklist { get; set; }

    [JsonProperty("deprecatedAndHidden")]
    public bool DeprecatedAndHidden { get; set; }

    [JsonProperty("digits")]
    public int Digits { get; set; }

    [JsonProperty("displayLocationInDecimal")]
    public bool DisplayLocationInDecimal { get; set; }

    [JsonProperty("encrypted")]
    public bool Encrypted { get; set; }

    [JsonProperty("externalId")]
    public bool ExternalId { get; set; }

    [JsonProperty("extraTypeInfo")]
    public string ExtraTypeInfo { get; set; }

    [JsonProperty("filterable")]
    public bool Filterable { get; set; }

    [JsonProperty("filteredLookupInfo")]
    public object FilteredLookupInfo { get; set; }

    [JsonProperty("groupable")]
    public bool Groupable { get; set; }

    [JsonProperty("highScaleNumber")]
    public bool HighScaleNumber { get; set; }

    [JsonProperty("htmlFormatted")]
    public bool HtmlFormatted { get; set; }

    [JsonProperty("idLookup")]
    public bool IdLookup { get; set; }

    [JsonProperty("inlineHelpText")]
    public object InlineHelpText { get; set; }

    [JsonProperty("label")]
    public string Label { get; set; }

    [JsonProperty("length")]
    public int Length { get; set; }

    [JsonProperty("mask")]
    public object Mask { get; set; }

    [JsonProperty("maskType")]
    public object MaskType { get; set; }

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("nameField")]
    public bool NameField { get; set; }

    [JsonProperty("namePointing")]
    public bool NamePointing { get; set; }

    [JsonProperty("nillable")]
    public bool Nillable { get; set; }

    [JsonProperty("permissionable")]
    public bool Permissionable { get; set; }

    [JsonProperty("picklistValues")]
    public List<ObjectFieldPicklistValue> PicklistValues { get; set; }

    [JsonProperty("precision")]
    public int Precision { get; set; }

    [JsonProperty("queryByDistance")]
    public bool QueryByDistance { get; set; }

    [JsonProperty("referenceTargetField")]
    public object ReferenceTargetField { get; set; }

    [JsonProperty("referenceTo")]
    public List<string> ReferenceTo { get; set; }

    [JsonProperty("relationshipName")]
    public string RelationshipName { get; set; }

    [JsonProperty("relationshipOrder")]
    public object RelationshipOrder { get; set; }

    [JsonProperty("restrictedDelete")]
    public bool RestrictedDelete { get; set; }

    [JsonProperty("restrictedPicklist")]
    public bool RestrictedPicklist { get; set; }

    [JsonProperty("scale")]
    public int Scale { get; set; }

    [JsonProperty("soapType")]
    public string SoapType { get; set; }

    [JsonProperty("sortable")]
    public bool Sortable { get; set; }

    [JsonProperty("type")]
    public string Type { get; set; }

    [JsonProperty("unique")]
    public bool Unique { get; set; }

    [JsonProperty("updateable")]
    public bool Updateable { get; set; }

    [JsonProperty("writeRequiresMasterRead")]
    public bool WriteRequiresMasterRead { get; set; }
}
public class ObjectFieldChildRelationship
{
    [JsonProperty("cascadeDelete")]
    public bool CascadeDelete { get; set; }

    [JsonProperty("childSObject")]
    public string ChildSObject { get; set; }

    [JsonProperty("deprecatedAndHidden")]
    public bool DeprecatedAndHidden { get; set; }

    [JsonProperty("field")]
    public string Field { get; set; }

    [JsonProperty("junctionIdListNames")]
    public List<object> JunctionIdListNames { get; set; }

    [JsonProperty("junctionReferenceTo")]
    public List<object> JunctionReferenceTo { get; set; }

    [JsonProperty("relationshipName")]
    public string RelationshipName { get; set; }

    [JsonProperty("restrictedDelete")]
    public bool RestrictedDelete { get; set; }
}
public class ObjectFieldInfo
{
    [JsonProperty("actionOverrides")]
    public List<object> ActionOverrides { get; set; }

    [JsonProperty("activateable")]
    public bool Activateable { get; set; }

    [JsonProperty("childRelationships")]
    public List<ObjectFieldChildRelationship> ChildRelationships { get; set; }

    [JsonProperty("compactLayoutable")]
    public bool CompactLayoutable { get; set; }

    [JsonProperty("createable")]
    public bool Createable { get; set; }

    [JsonProperty("custom")]
    public bool Custom { get; set; }

    [JsonProperty("customSetting")]
    public bool CustomSetting { get; set; }

    [JsonProperty("deletable")]
    public bool Deletable { get; set; }

    [JsonProperty("deprecatedAndHidden")]
    public bool DeprecatedAndHidden { get; set; }

    [JsonProperty("feedEnabled")]
    public bool FeedEnabled { get; set; }

    [JsonProperty("fields")]
    public List<ObjectField> Fields { get; set; }

    [JsonProperty("keyPrefix")]
    public string KeyPrefix { get; set; }

    [JsonProperty("label")]
    public string Label { get; set; }

    [JsonProperty("labelPlural")]
    public string LabelPlural { get; set; }

    [JsonProperty("layoutable")]
    public bool Layoutable { get; set; }

    [JsonProperty("listviewable")]
    public object Listviewable { get; set; }

    [JsonProperty("lookupLayoutable")]
    public object LookupLayoutable { get; set; }

    [JsonProperty("mergeable")]
    public bool Mergeable { get; set; }

    [JsonProperty("mruEnabled")]
    public bool MruEnabled { get; set; }

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("namedLayoutInfos")]
    public List<object> NamedLayoutInfos { get; set; }

    [JsonProperty("networkScopeFieldName")]
    public object NetworkScopeFieldName { get; set; }

    [JsonProperty("queryable")]
    public bool Queryable { get; set; }

    [JsonProperty("recordTypeInfos")]
    public List<ObjectFieldRecordTypeInfo> RecordTypeInfos { get; set; }

    [JsonProperty("replicateable")]
    public bool Replicateable { get; set; }

    [JsonProperty("retrieveable")]
    public bool Retrieveable { get; set; }

    [JsonProperty("searchLayoutable")]
    public bool SearchLayoutable { get; set; }

    [JsonProperty("searchable")]
    public bool Searchable { get; set; }

    [JsonProperty("supportedScopes")]
    public List<ObjectFieldSupportedScope> SupportedScopes { get; set; }

    [JsonProperty("triggerable")]
    public bool Triggerable { get; set; }

    [JsonProperty("undeletable")]
    public bool Undeletable { get; set; }

    [JsonProperty("updateable")]
    public bool Updateable { get; set; }

    [JsonProperty("urls")]
    public ObjectFieldUrl Urls { get; set; }
}
public class ObjectFieldPicklistValue
{
    [JsonProperty("active")]
    public bool Active { get; set; }

    [JsonProperty("defaultValue")]
    public bool DefaultValue { get; set; }

    [JsonProperty("label")]
    public string Label { get; set; }

    [JsonProperty("validFor")]
    public string ValidFor { get; set; }

    [JsonProperty("value")]
    public string Value { get; set; }
}
public class ObjectFieldRecordTypeInfo
{
    [JsonProperty("available")]
    public bool Available { get; set; }

    [JsonProperty("defaultRecordTypeMapping")]
    public bool DefaultRecordTypeMapping { get; set; }

    [JsonProperty("master")]
    public bool Master { get; set; }

    [JsonProperty("name")]
    public string Name { get; set; }

    [JsonProperty("recordTypeId")]
    public string RecordTypeId { get; set; }

    [JsonProperty("urls")]
    public ObjectFieldUrl Urls { get; set; }
}
1
2
3
4
5
6
7
8
public class ObjectFieldSupportedScope
{
    [JsonProperty("label")]
    public string Label { get; set; }

    [JsonProperty("name")]
    public string Name { get; set; }
}
1
2
3
4
5
public class ObjectFieldUrl
{
    [JsonProperty("layout")]
    public string Layout { get; set; }
}

Comments (0)