Monday, 11 April 2016

Field Dependency in salesforce

Field dependency means, controlling a fields value based on the other field. For example, there are two fields called Country & State. I want to display only states related specific selected country when I select country.

Field dependency means, controlling a fields value based on the other field. For example, there are two fields called Country & State. I want to display only states related specific selected country when I select country.



Click on continue and select dependent fields under controlling fields. click on include & then Save. see the below screen for reference.


Field dependency is created now. To test this go to Country field and select USA, In states you will get only States related to USA ( Alabama, Alaska, Delaware & Florida) as defined above.

Creating fields in salesforce-Custom object and standard object

A field is like a custom Database column. Object field Store the data for our records. Salesforce by default provide few fields with salesforce standard objects  those are called standard fields. We cannot delete salesforce standard field. If we want we can change label name. The field created by us are called Custom field. We can delete custom field in salesforce.


Creating fields in salesforce
Path for creating field for standard objects
Setup ->Build -> Customize ->select object-> Click on field-> Go to the custom fields and relationships-> click on new button and create your custom field.
Path for creating field for Custom object
Setup->Build->create->object->select object-> Go to custom fields and relationship and create your field in custom object.
Important points About Custom fields
Changing the data type of existing custom field is possible but it may cause data loss.
Deleting a custom field removes both the data and field.
Custom field are stored for 15 days in recycle in after deletion.
If data is lost any list view based on the custom field will be deleted and assignment and escalation rules may be affected.