chanchal kumar
IndividualForum Replies Created
-
chanchal kumar
MemberSeptember 10, 2018 at 10:17 am in reply to: Custom Setting in Salesforce and Their ImportanceHello Avnish,
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. All custom settings data is exposed in the application cache, which enables efficient access without the cost of repeated queries to the database. This data can then be used by formula fields, validation rules, flows, Apex, and the SOAP API.
-
Hello Avnish
Example of salesforce APIs:
- REST API: is a simple and powerful web service based on RESTful principles. It exposes all sorts of Salesforce functionality via REST resources and HTTP methods. For example, you can create, read, update, and delete (CRUD) records, search or query your data, retrieve object metadata, and access information about limits in your org. REST API supports both XML and JSON.
- SOAP API: is a robust and powerful web service based on the industry-standard protocol of the same name. It uses a Web Services Description Language (WSDL) file to rigorously define the parameters for accessing data through the API. SOAP API supports XML only. Most of the SOAP API functionality is also available through REST API. It just depends on which standard better meets your needs.
- Bulk API: is a specialized RESTful API for loading and querying lots of data at once. By lots, we mean 50,000 records or more. Bulk API is asynchronous, meaning that you can submit a request and come back later for the results. This approach is the preferred one when dealing with large amounts of data. There are two versions of Bulk API (1.0 and 2.0). Both versions handle large amounts of data, but we use Bulk API 2.0 in this module because it’s a bit easier to use.
- Streaming API: is a specialized API for setting up notifications that trigger when changes are made to your data. It uses a publish-subscribe, or pub/sub, model in which users can subscribe to channels that broadcast certain types of data changes.
-
chanchal kumar
MemberSeptember 10, 2018 at 10:12 am in reply to: What is a use case for Salesforce Connect?Hello Avnish,
Use Salesforce Connect when :
- You have a large amount of data that you don’t want to copy into your Salesforce org.
- You need small amounts of data at any one time.
- You need real-time access to the latest data.
- You store your data in the cloud or in a back-office system, but want to display or process that data in your Salesforce org.
-
chanchal kumar
MemberSeptember 7, 2018 at 1:39 pm in reply to: Is there a limit for data.com records?Hi Manpreet,
I want to add on in Saurabh' reply. If you’re a Data.com List User, your name also appears in the Data.com List User section of the page. After you’ve used your monthly record additions, you’ll share record additions from a pool with all other List Users in your organization. Your organization’s pool has a limit, so if one Data.com List User reaches the limit, other Data.com List Users can’t add records. List pools expire one year after purchase.
-
Hello Prachi,
This is a capability that allows Salesforce developers and admins to share the resources. Specific permissions are set to manage the sharing and limit the access. You are free to change the permissions whenever needed.
-
chanchal kumar
MemberSeptember 4, 2018 at 2:26 pm in reply to: How To Force Lead Assignment Rule Via Apex While Updating Or Adding The Lead?Hello Prachi,
To enforce Assignment Rules in Apex you will need to perform following steps:
1. Instantiate the “Database.DMLOptions” class.
2. Set the “useDefaultRule” property of “assignmentRuleHeader” to True.
3. Finally call a native method on your Lead called “setOptions”, with the Database.DMLOptions instance as the argument.// to turn ON the Assignment Rules in Apex
Database.DMLOptions dmlOptn = new Database.DMLOptions();
dmlOptn.assignmentRuleHeader.useDefaultRule = true;
leadObj.setOptions(dmlOptn); -
Hello Avnish,
There are a number of techniques you can use to prevent SOQL injection:
- Static queries with bind variables
- String.escapeSingleQuotes()
- Type casting
- Replacing characters
- Whitelisting
for elobraton you can check following link: https://trailhead.salesforce.com/en/modules/secdev_injection_vulnerabilities/units/secdev_inject_prevent_soql_injection
- This reply was modified 6 years, 2 months ago by chanchal kumar.
-
chanchal kumar
MemberSeptember 3, 2018 at 1:25 pm in reply to: How to insert various values in a field in comma saperated form?I want to insert 3 fields of leads in a custom object such that these fields will appears in comma saperated form in field which created in custom object.
-
Hello Shradha,
StandardSetController objects allow you to create list controllers similar to, or as extensions of, the pre-built Visualforce list controllers provided by Salesforce.
The StandardSetController class also contains a prototype object. This is a single sObject contained within the Visualforce StandardSetController class. If the prototype object's fields are set, those values are used during the save action, meaning that the values are applied to every record in the set controller's collection. This is useful for writing pages that perform mass updates (applying identical changes to fields within a collection of objects). -
chanchal kumar
MemberSeptember 3, 2018 at 10:48 am in reply to: Casting between the generic sObject type and the specific sObject type in salesforcWhen you’re dealing with generic sObjects, you sometimes need to cast your sObject variable to a specific sObject type. One of the benefits of doing so is to be able to access fields using dot notation, which is not available on the generic sObject. Since sObject is a parent type for all specific sObject types, you can cast a generic sObject to a specific sObject.
eg.
Account acct = (Account)myGenericSObject;
String name = acct.Name;
String phone = acct.Phone; -
chanchal kumar
MemberSeptember 3, 2018 at 10:33 am in reply to: Custom dependent picklist in lightning.Hello Shradha,
Step 1 : Setup Picklist field dependency
Step 2 : Create apex controller
Step 3 : Create Lightning Component (component, controller & helper)
-
chanchal kumar
MemberAugust 31, 2018 at 2:42 pm in reply to: When does the error "Attempt to de-reference a null object" occurs?Hello Anurag,
This error is caused by a line of code that is trying to use an object that has not been instantiated, or an object's attribute that has not been initialized.
NOTE: If the field Site was left empty, it will generate the error message as well.
-
Hello Avnish,
When you convert leads, Salesforce creates accounts, contacts, and, opportunities using information from the leads you’re converting. Salesforce moves any campaign members to the new contacts, and the leads become read-only records. If existing accounts and contacts share the names specified on the leads, you can choose to update the existing accounts and contacts. Salesforce adds information from the lead into empty fields; Salesforce does not overwrite existing account and contact data.
-
chanchal kumar
MemberAugust 31, 2018 at 12:10 pm in reply to: How can you override a list button with a visuaflorce page?Hello Avnish,
To override a button on a standard object:
- Click Setup | Customize, select the name of the object, and then click Buttons and Links.
- In the Standard Buttons and Links related list, click Override next to the name of the button you want to change.
- Select Visualforce Page as the content type.
- Select a Visualforce page from the content name drop-down list. Only Visualforce pages that use the standard controller for the object on which the button appears can be selected. For example, if you want to use a page to override the Edit button on accounts, the page markup must include the standardController="Account" attribute on the <apex:page> tag:
<apex:page standardController="Account">
... page content here ...
</apex:page>
- Click Save.
-
chanchal kumar
MemberAugust 30, 2018 at 1:01 pm in reply to: Explain Render and Rerender in Salesforce Lightning.Hello Shradha,
Rendered:
This to rendered(ie., display) particular filed or section based on boolean value. In the controller you need to have get method to assign the value for this variable.
Eg:
<apex:inputField value="{obj.Filed_C}" Rendered="{!val == true}"/>
controller:
public boolean val{get;set;}
method(){
val = true;
}ReRender:
This is to ReReder(ie.,Reload) some fields, or sections after some operation/change. For this you need to assign id to field, sections.
Eg:
<apex:actionRegion> <apex:inputField value=”{!test}” > <apex:actionSupport event=”onchange” rerender=”yrs,yrss,yrsss,nodays,nohours,nominutes” action=”{!test}” > <apex:param name=”Para” value=”{!rowNum}” assignTo=”{!IndexValue}” /> </apex:actionSupport> </apex:inputField> </apex:actionRegion>
-
chanchal kumar
MemberAugust 30, 2018 at 7:57 am in reply to: What does Test.startTest and Test.stopTest in the test class do ?Hello Anurag
Any code that executes after the call to startTest and before stopTest is assigned a new set of governor limits. These two statements cannot be called more than once within a testMethod.
You need these two methods when you are dealing with large number of data.
-
chanchal kumar
MemberAugust 29, 2018 at 12:19 pm in reply to: What is the use of this keyword in Salesforce Apex?Hello Anurag
This keyword defines a method/variable that is only initialized once, and is associated with an (outer) class, and initialization code.
Example:
public class Foo {
public Foo(String s) { /* … */}
public foo() {
this(‘memes repeat’); }
} -
chanchal kumar
MemberAugust 29, 2018 at 7:19 am in reply to: Unable to convert Lead that is in use by workflowHello Parul,
You should check is there any time-based workflows by navigated to Setup>Process Automation>Flows,
so that you get a list of Paused and Waiting interviews related to a workflow for Leads that you had deactivated,
delete everything in that queue and try again.
-
chanchal kumar
MemberAugust 29, 2018 at 6:55 am in reply to: How many types of Bundles are in Salesforce CPQ? Explain it.Hello Anjali,
A bundle is a product with optional features or components that you want to include on a single quote line.
A bundle product contains several records.
- A bundle parent: The parent product is the bundle itself.
- Options: These products in the bundle contribute to the bundle price. You can consider these children of the bundle parent. An option doesn’t contribute to the bundle price if you select its Bundled checkbox.
- Features: A feature is a group of options. You can use the Min Options and Max Options fields to define selection restrictions for objects in the same feature, such as “pick one or more” or “pick 3 of 5.”
- Option constraints: Use constraints to control how users select options together.
- Configuration attribute: A field and picklist shown above or below the list of product options. This field targets all options containing the same field and applies its value to all those fields.
-
chanchal kumar
MemberAugust 28, 2018 at 2:53 pm in reply to: Can we use try and catch exception in Lightning controller?Hello Anurag,
yes, we use try and catch exception in lightning controller.
-
chanchal kumar
MemberAugust 28, 2018 at 2:52 pm in reply to: What is the use of aura:waiting and aura:doneWaiting in Salesforce Lightning?Hello Anurag,
aura:waiting Event :
- This is an application level event.
- This event indicates that the app is waiting for response to a server request.
- This event is fired before aura:doneWaiting.
- This event is automatically fired when a server-side action is added using $A.enqueueAction().
- The aura:waiting event is handled by a client-side controller.
- A component can have only one tag to handle this event.
aura:donewaiting Event :
- This is also an application level event.
- This event indicates that the app is done waiting for response to a server request.
- This event is fired after aura:waiting.
- This event is automatically fired if no more response from the server is expected.
- This event is also handled by a client-side controller.
-
chanchal kumar
MemberAugust 22, 2018 at 1:25 pm in reply to: What Is a Bucket Field In Salesforce Reports?Hello Avnish,
Bucketing lets you quickly categorize report records without creating a formula or a custom field.
When you create a bucket field, you define multiple categories (buckets) used to group report valuesfor eg, if you have a status field on Leads with 10 picklist values, you could group them into 2 or three categories or 'buckets' such as "Cold" "Warm" and "Hot"
-
chanchal kumar
MemberAugust 21, 2018 at 1:22 pm in reply to: How many reports can be added to the Salesforce dashboard?Hello Prachi,
Limit of report on dashboard:
- Professional Edition - 50
- Enterprise Edition - 200
- Unlimited and Performance Edition - 2000
- Developer Edition - 400
-
chanchal kumar
MemberAugust 20, 2018 at 2:15 pm in reply to: What is the default namespace of Salesforce lightning component?Hello Prachi,
If your organization hasn’t set a namespace prefix, use the default namespace c when referencing Lightning components that you’ve created.
The following items must use the c namespace when your organization doesn’t have a namespace prefix set.- References to components that you’ve created
- References to events that you’ve defined
The following items use an implicit namespace for your organization and don’t require you to specify a namespace.
- References to custom objects
- References to custom fields on standard and custom objects
- References to Apex controllers
-
chanchal kumar
MemberAugust 20, 2018 at 1:13 pm in reply to: Case creation from community in salesforce.- Add the Cases tab to the list of available tabs in your community.
- Set tab visibility and “Read,” “Create,” and “Edit” object permissions. You can either set them on the profile or using a permission set. We recommend using a permission set if you plan to apply these permissions selectively.
- If using a profile, such as the Partner Community profile, set the cases tab setting to Default On and enable the “Read,” “Create,” and “Edit” object permissions for cases.
- If using a permission set, create a permission set with the following settings for cases:
In the Tab Settings, select Available and Visible.
In the Object Settings, select “Read,” “Create,” and “Edit”.