1.What is Apex
Ans: It is the in-house technologyof salesforce.com which is similar to Java programming with object orientedconcepts and to write our own custom logic.
2.What is S-Control ?
Ans: S-Controls are the predominant salesforce.com widgets which are completelybased on Javascript. These are hosted by salesforce but executed at clientside. S-Controls are superseded by Visualforce now.
3.What is a Visualforce Page ?
Ans: Visualforce is the new markup language from salesforce, by using which, Wecan render the standard styles of salesforce. We can still use HTML here inVisualforce. Each visualforce tag always begins with “apex” namespace. All thedesign part can be acomplished by using Visualforce Markup Language and thebusiness logic can be written in custom controllers associated with the Page.
4.Will Visual force still supports the merge fields usage like S-control ?
Ans: Yes. Just like S-Controls, Visualforce Pages support embedded mergefields, like the {!$User.FirstName} used in the example.
5.Where to write Visualforce code ?
Ans: You can write the code basically in 3 ways.
- setup->App Setup->Develop->Pages and create new Visulaforce page.
- Setup -> My Personal Information -> Personal Information -> Edit check the checkbox development mode. When you run the page like this, https://ap1.salesforce.com/apex/MyTestPage. you will find the Page editor at the bottom of the page. You can write you page as well as the controller class associated with it, there it self.
- Using EclipseIDE you can create the Visulaforce page and write the code.
6.Whatare Apex Governor Limits?
Governor limits are runtime limitsenforced by the Apex runtime engine. Because Apex runs in a shared, multitenantenvironment, the Apex runtime engine strictly enforces a number of limits toensure that code does not monopolize shared resources. Types of limits thatApex enforces are resources like memory, database resources, number of scriptstatements to avoid infinite loops, and number of records being processed. Ifcode exceeds a limit, the associated governor issues a runtime exception.
7.How to create and host S Control in Salesforce ?
http://shivasoft.in/blog/webtech/salesforce/how-to-create-s-control-in-salesforce/
http://shivasoft.in/blog/webtech/salesforce/how-to-host-s-control-in-visualforce-page/
8.Difference between Sandbox and Development environment?
9.How to schedule export or take the backup of salesforce?
http://shivasoft.in/blog/webtech/salesforce/backup-the-salesforce-data/
10.Do governor limits apply to sandbox instances?
Ans : Governor limits do apply to all Salesforce instances(trial, developer, production or sandbox environments). However code coverageand successful execution of test classes is only enforced when deploying to aproduction environment.
11.What is difference in ISNULL and ISBLANK?
ISNULL:
- Determines if an expression is null (blank) and returns TRUE if it is. If it contains a value, this function returns FALSE.
- Text fields are never null, so using this function with a text field always returns false. For example, the formula field IF(ISNULL(new__c) 1, 0) is always zero regardless of the value in the New field. For text fields, use the ISBLANK function instead.
- Multi-select picklist fields are never null in s-controls, buttons, and email templates, so using this function with a multi-select picklist field in those contexts always returns false.
- Empty date and date/time fields always return true when referenced in ISNULL functions.
- Choose Treat blank fields as blanks for your formula when referencing a number, percent, or currency field in an ISNULL function. Choosing Treat blank fields as zeroes gives blank fields the value of zero so none of them will be null.
- Merge fields can be handled as blanks, which can affect the results of components like s-controls because they can call this function.
- When using a validation rule to ensure that a number field contains a specific value, use the ISNULL function to include fields that do not contain any value. For example, to validate that a custom field contains a value of ’1,’ use the following validation rule to display an error if the field is blank or any other number: OR(ISNULL(field__c), field__c<>1)
ISBLANK:
- Determines if an expression has a value and returns TRUE if it does not. If it contains a value, this function returns FALSE.
- Use ISBLANK instead of ISNULL in new formulas. ISBLANK has the same functionality as ISNULL, but also supports text fields. Salesforce.com will continue to support ISNULL, so you do not need to change any existing formulas.
- A field is not empty if it contains a character, blank space, or zero. For example, a field that contains a space inserted with the spacebar is not empty.
- Use the BLANKVALUE function to return a specified string if the field does not have a value; use the ISBLANK function if you only want to check if the field has a value.
- If you use this function with a numeric field, the function only returns TRUE if the field has no value and is not configured to treat blank fields as zeroes.
for further study you can read this link.
12.Is it possible to write the Apex code from user Interface?
You can add, edit, ordelete Apex using the Salesforce.com user interface only ina Developer Edition organization, a Salesforce.com Enterprise Editiontrial organization, or sandboxorganization.In a Salesforce.com production organization, you can only makechanges to Apex by using the Metadata API ,
deploycall,the Force.com IDE, or theForce.com Migration Tool. The Force.comIDE and Force.com Migration Tool are free resources providedby salesforce.com to support its users and partners, but are notconsidered part of our Services for purposes ofthe salesforce.com Master Subscription Agreement.
13.When you can’t add Time dependent action in Workflow rule?
You can’t add time-dependent actions to a rule if you choose Every time arecord is created or edited.
For more study, check this article
14.What are the types of email templates available in salesforce.com?
- Text
- HTML with Letter Head
- Custom HTML
- Visual force
To study more on email templates, refer thisarticle
15.What are the different Salesforce.com Editions and Limits?
Ans : check this URL
16.What is Roll up summary field in Salesforce?
Roll up summary field in salesforcecalculates the Count, Sum, Min or Max of particular field of any childrecord. Thus, we can say that Roll up summary field can only be created on Masterobject. To read further, please check this URL
17.What will happen if the Account is deleted?
If the Account is deleted thenContact, Opportunity will also be deleted from Salesforce which are related tothat Account.
From the database perspective, checkbelow image of child relationships of Account:
AccountChild relationship in salesforce
If we use schema builder, releasedin Winter 12 it would look like:
AccountContact and Opportunity of salesforce in schema builder
18.How many types of the relationship fields available in Salesforce>
Ans :
- Master Detail
- Many to Many
- Lookup
- Hierarchical
19.How to create many to many relationships between object?
Creating many to many relationshipin salesforce is little tricky. You cannot create this type of relationshipdirectly. Follow below steps to create this type of relationship.
Create both objects which should beinterlinked.
Create one custom object (alsocalled as junction object), which should have autonumber as uniqueidentification and create two master relationships for both objects, noneed create tab for this object.
Now on both object, add this fieldas related list.
Check this article on blog to create many to many relationship indetail.
To study more in detail, please refer salesforcedocuments.
20.In Which sequence Trigger and automation rules run in Salesforce.com The following is the order salesforce logic is applied to arecord.
- Old record loaded from database (or initialized for new inserts)
- New record values overwrite old values
- System Validation Rules
- All Apex “before” triggers (EE / UE only)
- Custom Validation Rules
- Record saved to database (but not committed)
- Record reloaded from database
- All Apex “after” triggers (EE / UE only)
- Assignment rules
- Auto-response rules
- Workflow rules
- Escalation rules
- Parent Rollup Summary Formula value updated (if present)
- Database commit
- Post-commit logic (sending email)
Additional notes: There is no way tocontrol the order of execution within each group above.