Friday, February 19, 2016

Global Picklist Feild in Salesforce

This feature we are going to discuss here is a Pilot/BETA version which is available only in some of the Editions as well as many features may not be available until Salesforce announces this feature through documentation or Press Releases or Public Statements.

As we already know that Salesforce has introduced a new feature called Global Picklist (BETA version) . These Global Picklist concept is similar to Global Actions concepts where create once and use many times across all objects.

Similarly these Global Picklist is nothing but a creating a Picklist field globally and use that picklist field values across the all other objects in salesforce whenever your creating a any picklist field.

How To Create and How to Use It

1. Goto Setup---->Create---> Click on PickLists


2. Click on New to create a Global PickList


3. Give the Label Name and Description and Click on Save



4. Click on New to add picklist values


5.Enter all picklist values each one in new line


6.After Saving the field looks like below


7.Goto any object and try to create a new Picklist field


8.After clicking on new Select field type as Picklist


9.Here you will get an option to select Global Picklist values as a picklist values for this field.Select the global picklist field that you want to select.The strictly enforce picklist values option is automatically selected.


10. Custom picklist Field detail page looks like below.



Advantage:

        These Global Picklist values will not allow you to enter non picklist field values from the APIs(like Developer Console,Data loader etc..).Example if you define in Global picklist values as New,Open and Close .Whenever your creating a record using APIs if you pass value as In Progress it will not allow because In Progress not available in that picklist field values.

Limitations to Pilot Version

1.For this pilot, the list of inherited values doesn’t appear on the detail page for a picklist that’s based on a global picklist.
2.You can create upto 500 Global picklist fields for organisation



Enjoy...............!!!!!!!!!

Monday, February 15, 2016

Salesforce Interview Questions

1.    Why we go for custom setting instead of normal custom object?

2.    What error will you get in a recurring trigger?

3.    How can you avoid trigger recursion?

4.    What error do we get when a workflow firing another workflow and another and on?

5.    When we need sharing rules?

6.    How many ways can we invoke an apex class?

7.    How many records you can process using data loader?

8.    When do we get system.Timeout exception when inserting records using data loader?

9.    How can you avoid system.Timeout exception when inserting records using data loader error?

10. If any record throws exception while inserting using data loader. What happens to other records?

11. How can you call an custom setting in apex class?

12. How to know which edition your organisation using currently?

13. How to delete the records permanently in salesforce?

14. Can we stop/deactivate the Trigger execution from configuration?

15.  How many APIs are there in Salesforce?

16.    How can you update records using data loader with excel file having records   with one field value=null?

17.    How many types of workflows are there?

18.    Difference between created & every time edited, to meet subsequent criteria?

19.    How many ways you can schedule a batch apex?

20.    Why we go for batch apex?

21.    What methods we have in batch apex?

22.    How to send emails using other than workflows email alert?

23.    How to fire a trigger from a batch class?

24. How many records we can process using batch apex?

25. Can we perform DML operation in a constructor?