Salesforce

Salesforce

How clone a record with related records in Salesforce?

Sample Code: Visualforce page: <apex:page controller="Sample" sidebar="false"> <apex:form > <apex:pageblock > <apex:pageblockSection > <apex:pageblockSectionItem >Enter the Account Id:</apex:pageblockSectionItem> <apex:pageblockSectionItem ><apex:inputtext value="{!idOfRec}" /></apex:pageblockSectionItem> </apex:pageblockSection> <apex:pageblockButtons > <apex:commandButton value="Clone" action="{!cloneRec}"/> </apex:pageblockButtons> </apex:pageblock> ....

Salesforce

IN operator in SOQL

Sample Code:     public List<String> ids = new List<String>                              {'003A0560014LLW9','a03A0000014LLWi','s03A000er14LLWq',                             'a03A034d014LLWi','a03un000014LLWi',                             'a03A0y00014LLW9','0019000000GuZEF'};        public List<Account> acc {get;set;}       public void find()    {               acc = Database.Query('Select Name, SLA__c From ....

Salesforce

Salesforce Interview questions with answers Part 14

1.What is many to many relationship? http://infallibletechie.blogspot.in/2013/03/how-to-create-many-to-many-relationship.html 2. Encrypted field? http://infallibletechie.blogspot.in/2012/11/encrypted-field-in-salesforce.html 3. Debug log? http://infallibletechie.blogspot.in/2012/08/example-for-systemdebug-in-salesforce.html 4. Explain import wizard? http://infallibletechie.blogspot.in/2012/08/import-wizard-in-salesforce.html 5. What is the use of VLookup function? http://infallibletechie.blogspot.in/2012/11/vlookup-in-saelsforce-validation-rule.html 6. ....