1.In Data loader using upsert operation can u do update a record if that record id is already exist in page and if updated that record then can u update 2records with having same id and if not updated 2 records then what error message is given?
It is not possible to update records with same id in a file using upsert operation. It will throw “duplicate ids found” error.
2. One product cost is 1000. It is stored in invoice so once if change the cost of product to 800 then how can i update it automatically into a invoice?
We can achieve this using triggers or through relationship among objects.
3. One company is having some branches and all branches having different departments. So, now I want to display all departments from all branches in a single visualforce page?
Using subquery we can fetch all the required data and we can display it in VF page.
4.Can you please give some information about Implicit and Explicit Invocation of apex?
Triggers – Implicit
Javascript remoting – Explicit
5.what is apex test execution?
Executing apex test classes.
6. In an apex invocation how many methods that we can write as future annotations?
10
7. In how many ways we can invoke flows?
We can invoke flows from different ways

  • From Apex
  • From Process Builder
  • Directly from the button invocation

8.What is apex test execution?
Executing apex test classes
9.I have an account object, I have a status field which has open and completed checkboxes, when ever I click on completed, I want an opportunity to be created automatically. Through which we can achieve in salesforce?
Triggers.
10.What are workflows and what actions can be performed using workflows?
Workflows are used for automation.

  • Field Update
  • Outbound Messages
  • Email Alert
  • Task

11.Can we invoke flows from apex?
Yes,We can call flows from apex.
12.Write a query for below?
I have 1 parent(account) and 1 child(contact),how will you get F.name,L.name from child and email from the account when Organization name in account is “CTS”?
SELECT Email, (SELECT F.Name, L.Name FROM Contacts) WHERE Name = ‘CTS’.
13. Will the Flow supports bulkification mechanism?
Yes ,flows support bulk records processing also.
14.What are outbound messages?what it will contain?
In outbound message contains end point URL.
15. What is External id?primary id?
External id is unique to external application.
Primay id is unique to internal organization.
16. Data loader?and which format it will support?
Data loader is a tool to manage bulk data. It will support .csv format of Excel.
17. How import wizard will not allow the duplicates?
Using external id.
18. What are validation rules?
Used to maintain data format.
19.Ajax Components in V.F?
Ajax components are nothing but tags start with <apex:action> like

  • <apex:actionPoller>
  • <apex:actionFunction>
  • <apex:actionSupport>
  • <apex:actionRegion>
  • <apex:actionStatus>
  • 20.Salesforce sites?
    Used to show data from our organization for public view.
    21.Auto-response rules and Escalation rules(for which objects are mandatory)?
    Case and Lead.
    22.Difference between REST and SOAP API’S?
    Varies on records that can be handled.
    23.What is creating debug log for users?
    Track code.
    24.How cases are created?
    Email to Case and Web to Case
    25.What is after undelete?
    While retrieving from recycle bin
    26.Will Trigger.new supports —>Insert,Will Trigger.Delete supports —>Delete?
    Yes.
    27.What is Inline visualforce page?
    Having vf page in pagelayout.
    28.If is child is mandatory field in lookup and I m deleting Parent,will child get deleted?
    No.
    29.Junction object?when will we use?If we delete the junction object what will happen?
    For many to many relationship.
    30.Can we have V.F pages in page layout?
    Yes.
    31.How to create standard object as child to custom object(which is not possible thru standard away process,have to bypass this restriction)?
    Create Lookup and make the lookup field mandatory.
    32.In a visual force page the save should ensure the data to be be stored in current object as well as associated child object?
    We have to use Database.SavePoint and Database.Rollback for this situation.
    33. what is audit field,what is the purpose of audit field?
    Created By, Created Date, Last Modified By and Last Modified Date are audit fields. Used to track when the changes are done to the records.
    34.What we need to do for extending the limit of creating only 2 M-D relationships for custom object?
    Create Lookup and make the lookup field mandatory.
    35.How to write java script code for save button?
    We have to create custom button and in that custom button we have to write Java script code.
    36.What are the attributes of apex tag?
    Attribute tag is used in creating components.
    37.How to insert value to a parent and child element at the same time?
    Use triggers.
    38.How to make pick-list as required (thru java script)?
    We have to create custom button and in that custom button we have to write Java script code to check whether the picklist value is null.
    39.What is the Difference between Ajax and ActionPoller?
    ActionPolleris a timer that sends an AJAX update request to the server according to a time interval that you specify.
    40.When a case is generated by an user through web to case,how or where a developer will provide solution case arised?
    Email notification through trigger or through email alert Workflow rule.
    41.what is the use of interfaces(in apex classes)?
    An interface is like a class in which none of the methods have been implemented—the method signatures are there, but the body of each method is empty. To use an interface, another class must implement it by providing a body for all of the methods contained in the interface.
    Interfaces can provide a layer of abstraction to your code. They separate the specific implementation of a method from the declaration for that method. This way you can have different implementations of a method based on your specific application.
    http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_classes_interfaces.htm
    42.I have added an string ‘updated’ to all users in Account object through batch apex,now how to remove that ‘updated’?
    Run the below code in developer console
    List<Account> acc =[SELECT Id, Name FROM Account];
    for(Account a : acc)
    {
    a.Name = a.Name.removeEnd(‘Updated’);
    update a;
    }
    43.What are workflows and what actions can be performed using workflows?
    Workflows are used for automation.

    • Field Update
    • Outbound Messages
    • Email Alert
    • Task

    44.What are types of workflows?

    • Immediate Workflow Actions
    • Time-Dependent Workflow Actions

    45.Can you tell me what is time based workflow?
    Time Based workflow will be triggered at what time we define while creating the Time-Dependent workflow rule.
    46.Can you give me situation where we can you workflow rather than trigger and vice versa?
    If you want to perform any action after some action, we can go for Workflow Rule.
    If you want to perform any action before and after some action, we can go for Trigger.
    47.Lets say I have a requirement whenever a record is created I want to insert a record on some other object?
    Triggers can be used for this.
    48.Whenever a record is inserted in contact I want insert a record in opportunity as well, we can’t do it with workflow right how would you do it with trigger?
    We can get the Account Id from the Contact and we can create an Opportunity under the Account.
    49.What is the difference between trigger.new and trigger.newmap?
    Trigger.new can be used in before and after operations.
    Trigger.newMap can be used in after insert and after and before update.
    50.Can you tell me what is the difference between apex:actionfunction and apex:actionpoller? Is there any way that we can do the same functionality of apex:actionpoller do?
    apex:actionPoller is used to call an Apex method for the interval of time specified.
    apex:actionFunction is used to call Apex method from Javascript.
    Using setTimeOut in Javascript, we can achieve apex:actionPoller functionalities.

Leave a Reply

Your email address will not be published. Required fields are marked *