Parul
IndividualForum Replies Created
-
Parul
MemberSeptember 17, 2018 at 2:49 am in reply to: When should Apex be used over Workflow rules or Process Builder?Because Each workflow rule applies to a single object, such as leads, accounts, or opportunities. For the maximum number of workflow rules allowed on an object, see Salesforce Editions and Limits.
Workflow rules and Process Builder operations sometimes have feature limitations that can be overcome with Apex. For example, pulling information from an external system. You can automate your bussiness by using these tools easily. -
Parul
MemberSeptember 17, 2018 at 2:46 am in reply to: Can you explain the use of custom settings in Salesforce?Custom settings are similar to custom objects and enable application developers to create custom sets of data, as well as create and associate custom data for an organization, profile, or specific user.
-
Parul
MemberSeptember 17, 2018 at 2:46 am in reply to: What is the difference between S-Controls and Visualforce?S-Controls allow Salesforce developers to leverage HTML and Javascript to create custom pages and UI components. These customizations are used when an admin needs to work with a small set of records or fields, or if he or she needs to link to an external server.
S-Controls enable developers to add their own functionality to a Salesforce org. Among some of the possibilities, you can integrate hosted apps, or extend the Salesforce UI.
Visualforce: Visualforce is the new force.com technology that lets you create custom user interfaces for your Force.com applications. With Visualforce, you can reuse many of the components found in existing Salesforce interfaces or create your own. Moreover, the interfaces can also tap into custom business logic.
-
S-Controls allow Salesforce developers to leverage HTML and Javascript to create custom pages and UI components. These customizations are used when an admin needs to work with a small set of records or fields, or if he or she needs to link to an external server.
S-Controls enable developers to add their own functionality to a Salesforce org. Among some of the possibilities, you can integrate hosted apps, or extend the Salesforce UI.
Visualforce: Visualforce is the new force.com technology that lets you create custom user interfaces for your Force.com applications. With Visualforce, you can reuse many of the components found in existing Salesforce interfaces or create your own. Moreover, the interfaces can also tap into custom business logic.
-
Parul
MemberSeptember 17, 2018 at 2:38 am in reply to: What is the difference between currency data types and number data types in Salesforce?currency data:Allows users to enter a dollar or other currency amount and automatically formats the field as a currency amount. Because Number data type Allows users to enter any number only.
Thanks
-
Parul
MemberSeptember 17, 2018 at 2:38 am in reply to: Why we need currency data type in Salesforce?currency data:Allows users to enter a dollar or other currency amount and automatically formats the field as a currency amount. Because Number data type Allows users to enter any number only.
-
Parul
MemberSeptember 17, 2018 at 2:36 am in reply to: What is the difference between sharing rules and permission sets?Sharing rules to extend sharingaccess to users in public groups or roles. As with role hierarchies, sharing rules can never be stricter than your org-wide default settings. They just allow greater access for particular users. You can share records owned by certain users or meeting certain criteria.
Permission sets only provide general permissions to objects. Creating a permission set is like extending a profile. If your org wide sharing rules for an object are set to private then creating a permission set with create/read/write on that object will only allow them to create and manage their own records and not records owned by other users.
-
When Salesforce applies an escalation rule to a case, it inspects the case and compares the case to the criteria in the rule entry.
Create case escalation rules to escalate cases automatically if they are not resolved within a certain period of time.
Typically, your organization will have one escalation rule that consists of multiple entries which specify exactly how the cases are escalated. For example, your standard case escalation rule could have two entries: Cases with Type set to Gold are escalated within two hours, and cases with Type set to Silver are escalated within eight hours. -
Parul
MemberSeptember 16, 2018 at 5:48 pm in reply to: What is the difference between Action support and Action function in Salesforce?Action Function: Invoke the controller method from java script using AJAX and we can use action function from different places on visual force page.
Action Support: Invoke the controller method using AJAX when event occurs on page like onMouseOver, onClick, etc. and we can use action support for particular single apex component.Thanks
-
Parul
MemberSeptember 16, 2018 at 5:46 pm in reply to: What is database.getQuerylocator in Salesforce?Database.getQueryLocator in Salesforce returns a Query Locator that runs your selected SOQL query returning list that can be iterated over in batch apex or used for displaying large sets in VF
Thanks
-
Hi
In a word, no. There are similarities, to be sure, but it would be more correct to say that Lightning Components is View-Controller-Controller-Model, or perhaps View-Controller-Controller-Database.
These are Naming Rules in Salesforce Lightning
• Must begin with a letter
• Must contain only alphanumeric or underscore characters
• Can’t end with an underscore -
Parul
MemberSeptember 16, 2018 at 5:43 pm in reply to: What are component Naming Rules in Salesforce Lightning?Hi
A component name must follow the naming rules for Lightning components.
A component name must follow these naming rules:Must begin with a letter
Must contain only alphanumeric or underscore characters
Can’t end with an underscore
Can’t contain two consecutive underscoresThanks
- This reply was modified 6 years, 2 months ago by Parul.
-
Parul
MemberSeptember 16, 2018 at 5:36 pm in reply to: How to handle an internal server error in Salesforce?This is not a salesforce server problem.There are various reasons for which internal server error can occur.The major reason may be the data type you may be using in your VF or Apex, for e.g. if the field data type in Text and the value returning is above 255 characters, this error do occur.
Put debugs at various stages and comment the rest of the code, to find out where the actual problem persists. Because An internal server error has occurred An error has occurred while processing your request. The salesforce.com support team has been notified of the problem.
Thanks
-
Parul
MemberSeptember 16, 2018 at 5:34 pm in reply to: Can we call a Future method from Salesforce batch class?No You can not because batch class is a Synchronous process and @ future is Asynchronous.
Thanks
-
Parul
MemberSeptember 16, 2018 at 5:33 pm in reply to: What is the reason for “Object cannot be Deleted” error?You need to check debug that blog must be used in somewhere with any process.
Thanks
-
Parul
MemberSeptember 16, 2018 at 3:30 pm in reply to: How we Convert Lead through Salesforce Apex?Public class LeadClass{
public static void doConvert(Id leadId){Database.LeadConvert lc = new database.LeadConvert();
lc.setLeadId(leadId);
lc.setDoNotCreateOpportunity(True);LeadStatus convertStatus = [SELECT Id, MasterLabel FROM LeadStatus WHERE IsConverted=true LIMIT 1];
lc.setConvertedStatus(convertStatus.MasterLabel);
Database.LeadConvertResult lcr = Database.convertLead(lc);
}
}Thanks
-
Parul
MemberSeptember 16, 2018 at 3:27 pm in reply to: Can we get value of a particular field of object on a link in Salesforce?Hi
<apex:pageBlock >
<apex:pageBlockButtons>
<apex:commandButton value="Click" action="{!main}" reRender="one"/>
</apex:pageBlockButtons>
<apex:pageBlockSection id="one">
<apex:pageBlockTable value="{!accs}" var="a">
<apex:column headerValue="Account hyperlink">
<apex:outputlink value="/{!a.Id}">{!a.Name}</apex:outputlink>
</apex:column>
<apex:column value="{!a.name}"/>
</apex:pageBlockTable>
</apex:pageBlockSection>
<apex:commandButton value="Click" action="{!main}" reRender="one"/>
</apex:pageBlock>Thanks
-
Parul
MemberSeptember 16, 2018 at 3:23 pm in reply to: How we can make a button of expand and collapse in Salesforce?<apex:page id="pgId" controller="SupportController" tabStyle="support__tab">
<!-- Stylesheet for support page section theme-->
<apex:stylesheet value="{!URLFOR($Resource.SupportStyles)}"/><apex:form id="fmId">
<apex:pageMessages /><div><a href="#" onclick= "expandAll();"><h1>Expand All</h1></a> / <a href="#" onclick= "collapseAll();"><b>Collapse All</b></a></div>
<br/>
<apex:pageBlock id="pBlock" >
<apex:pageBlockSection collapsible="true" rendered="false"/>
<apex:repeat value="{!SupportPageSectionList}" var="supPgSecVar">
<apex:pageBlockSection id="sec1">
<div id='sec1' > [<a >Show/Hide</a>] <b>{!supPgSecVar.Section_Name__c}</b></div>
<div id='sectn1' class= "section1" style="display:none;" >
<table>
<tr>
<td align='left' valign='top' width="1000">
<apex:stylesheet value="clear:both;"/>
<apex:outputText value="{!supPgSecVar.Section_Body__c}" escape="false"/>
</td>
</tr>
</table>
</div>
</apex:pageBlockSection>
<br/>
</apex:repeat>
</apex:pageBlock><script type='text/javascript'>
function expandAll(){
$(".section1").slideDown('fadeOut');}
function collapseAll(){
$(".section1").slideUp('slow');}
$(document).ready(function(){
$("#sec1").click(function(){
$(".section1").slideToggle("slow");
});
});
</script>
</apex:form>
</apex:page>Thanks
-
Parul
MemberSeptember 16, 2018 at 3:10 pm in reply to: How we can insert values of set in a Salesforce list?List<Contact> conlist=new List<Contact>();
conlist.addAll(SetContacts);
Thanks
-
Parul
MemberSeptember 16, 2018 at 3:07 pm in reply to: What is difference between Visual Workflow and Workflow Rule in Salesforce?Workflow
Workflow enables you to set up workflow rules. A workflow rule identifies what kinds of record changes or additions trigger specified workflow actions, such as sending email alerts and updating record fields.
Workflow rules and actions are associated with a specific object (and can cross objects only to update fields on a related master record).Visual Workflow
Visual Workflow enables you to create flows, which are triggered by users rather than events. Unlike Workflow, which always executes rules and actions behind the scenes, Visual Workflow offers screens for displaying and collecting information from the user running the flow.Thanks
-
Parul
MemberSeptember 16, 2018 at 3:06 pm in reply to: What is @testSetup annotation? When you will use it?If a test class contains a test setup method, the testing framework executes the test setup method first, before any test method in the class.
Records that are created in a test setup method are available to all test methods in the test class and are rolled back at the end of test class execution.
If a test method changes those records, such as record field updates or record deletions, those changes are rolled back after each test method finishes execution. The next executing test method gets access to the original unmodified state of those records.
Syntax;
@testSetup static void methodName() {
}
Ex:
@iSTest
public class LeadProcessorTest {//below test setup method will be invoked
// implicitly before every test methods
@testsetup
static void createLead(){
List<Lead> lstLead = new List<Lead>();
for(Integer i = 0 ; i<200 ; i++) {
lstLead.add(new Lead(lastName = 'testLName'+i , Company = 'Salesforce'));
}
insert lstLead ;
}//Check whether records created in test method
//is accessible or not
public static testMethod void test(){
System.assertEquals(200, [SELECT COUNT() FROM Lead Where company = 'Salesforce']);
}
}Thanks
-
Parul
MemberSeptember 16, 2018 at 3:04 pm in reply to: Messaging.EmailFileAttachment vs Messaging.singleEmailMessage in Salesforce?SingleEmailMessage extends Email and inherits all of its methods. All base email (Email class) methods are also available to the SingleEmailMessage objects.
Email properties are readable and writable. Each property has corresponding setter and getter methods. For example, the toAddresses() property is equivalent to the setToAddresses() and getToAddresses() methods. Only the setter methods are documented. However, the getTemplateName() method doesn’t have an equivalent setter method; use setTemplateId() to specify a template name.
EmailFileAttachment is used in SingleEmailMessage to specify attachments passed in as part of the request, as opposed to existing documents in Salesforce.
Thanks
-
The Log Inspector in Salesforce uses log panel views to provide different perspectives of your code.
Thanks
-
Parul
MemberSeptember 16, 2018 at 3:01 pm in reply to: What is the difference between Render vs Rerender in Salesforce?render - Boolean value (if it is true, it displays the block else it will be hidden)
ReRender : It is use after a ajax call, Is comonent will again check condition for that component.
Thanks
-
Parul
MemberSeptember 16, 2018 at 3:00 pm in reply to: How we get List of sibling Contact in a Salesforce Trigger?Trigger AreaCode on Contact (before insert) {
Set <String> InitialContact Name = new Set <String> ();
for(Contact Contact NameLoop : trigger.New)
{
if(ContactNameLoop.Area_Code__c != null){
InitialContactName.add(ContactNameLoop.Area_Code__c);
}}
Map <String, Area_Code__c> matchingAreaCodeMap = new Map <String, Area_Code__c> ();
for (Area_Code__c Record : [Select Id, Name, Market__c From Area_Code__c Where Name IN :InitialContactName])
{
matchingAreaCodeMap.put(Record.name, record);
}for(Contact ContactNameLoop : trigger.New)
{ContactNameLoop.Contact_Market__c = matchingAreaCodeMap.get(ContactNameLoop.Area_Code__c).Market__c;
}
}
Thanks