Salesforce interview QA(1)

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.

  1. setup->App Setup->Develop->Pages and create new Visulaforce page.
  2. 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.
  3. 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?

http://shivasoft.in/blog/webtech/salesforce/difference-between-sandbox-and-developer-edition-in-salesforce/


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?

  1. Text
  2. HTML with Letter Head
  3. Custom HTML
  4. 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 :

  1. Master Detail
  2. Many to Many
  3. Lookup
  4. Hierarchical

For further study read this.


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.

  1. Old record loaded from database (or initialized for new inserts)
  2. New record values overwrite old values
  3. System Validation Rules
  4. All Apex “before” triggers (EE / UE only)
  5. Custom Validation Rules
  6. Record saved to database (but not committed)
  7. Record reloaded from database
  8. All Apex “after” triggers (EE / UE only)
  9. Assignment rules
  10. Auto-response rules
  11. Workflow rules
  12. Escalation rules
  13. Parent Rollup Summary Formula value updated (if present)
  14. Database commit
  15. Post-commit logic (sending email)

Additional notes: There is no way tocontrol the order of execution within each group above.



  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值