Anjali Baranwal
IndividualForum Replies Created
-
Anjali
MemberAugust 27, 2018 at 5:40 am in reply to: What is the difference between set and private set in Salesforce?Hi Shradha,
Setter pass user-specified values from page markup to a controller. Any setter methods in a controller are automatically executed before any action methods.
Private setter means the variable can be set inside the class in which it is declared in. It will behave like readonly property outside that class's scope. Read only property can only be accessed, not mutated. No exception.
-
Anjali
MemberAugust 27, 2018 at 5:19 am in reply to: What is Lightning Data Service (LDS)? What are the benefits of using LDS?Hi Chanchal
You can think of Lightning Data Service as the Lightning Components version of the Visualforce standard controller. While this statement is an over-simplification, it serves to illustrate a point. Whenever possible, use Lightning Data Service to read and modify Salesforce data in your components.
Data access with Lightning Data Service is simpler than the equivalent using a server-side Apex controller. Read-only access can be entirely declarative in your component’s markup. For code that modifies data, your component’s JavaScript controller is roughly the same amount of code, and you eliminate the Apex entirely. All your data access code is consolidated into your component, which significantly reduces complexity.
Lightning Data Service provides other benefits aside from the code. It’s built on highly efficient local storage that’s shared across all components that use it. Records loaded in Lightning Data Service are cached and shared across components.
-
Anjali
MemberAugust 24, 2018 at 8:41 am in reply to: How to set the Login hours and Login IP ranges to the users in Salesforce?Hi Avnish,
Login hours- If Login hours set in an organization, then it restricts to log in before or after login hours.
Setup | Administration | Manage users | Profiles.
Login IP – It helps to restrict the unauthorized IP addresses login attempt.
Setup | Administration setup | Manage users | Profiles. -
Anjali
MemberAugust 24, 2018 at 8:36 am in reply to: What is the difference between “printable View” and “Export Details” button on a report?Hi Chanchal,
Printable View:
Formatting, Grouping and Subtotals are persisted (Retain the grouping as you see it on your report).Export Details:
Formatting, Grouping and Subtotals are lost.
It exports the details of the report; meaning every line that makes up your report will be rendered as a new line in your .xls or .csv -
Hi Prachi,
Action Status visualforce component displays the status of an AJAX update request. An AJAX request can either be in progress or complete.
Depending upon the AJAX request status (whether AJAX request is in progress or complete), this component will display different message to user. In many scenarios AJAX request takes some time. So we should display some message to user that your request is in progress. Once request is complete, we can display some different message to user.
Using actionstatus, we can also display some gif (graphic Interchange Format), which shows to user that their request is in progress. It gives very good presentation to end user.
-
Anjali
MemberAugust 23, 2018 at 5:09 am in reply to: What are the wizard controllers in Visualforce and how they are different from other controllers?Hi Madhulika
Wizard controllers can deal with numerous pages and state over each page that isn’t conceivable to manage by other easier controllers in VisualForce. The VisualForce controller mainly distinguishes the entire set of the guidelines that basically indicate what all can happen when the client cooperates with various parts accessible on VisualForce pages.
These segments might be links, buttons, or some other activity thing. There are three well-known sorts of Visual Force Controllers in Salesforce.
Wizard controllers maintain state between pages.
-
Anjali
MemberAugust 22, 2018 at 1:07 pm in reply to: What are the differences between leads and potential leads in Salesforce?Hi Avnish
Lead is a prospect who is aware of your company and it’s products.
Potential Lead is that “lead’ who is interested in purchasing your product and is very likely going to become a customer.
-
Anjali
MemberAugust 22, 2018 at 5:14 am in reply to: What is a Case Queue in case management in Salesforce?Case Queue - Every queue can have any number of queue members. Queue members can take ownership of any case within that queue. If your organization allows users to select cases from a pool, create case queues and give the appropriate users membership to that queue.
-
Anjali
MemberAugust 22, 2018 at 5:06 am in reply to: What are the different things which we need to consider while using future methods in Salesforce?Hi Madhulika
Different things which we need to consider while using future methods are-
- Avoid adding large numbers of future methods to the asynchronous queue, if possible. If more than 2,000 unprocessed requests from a single organization are in the queue, any additional requests from the same organization will be delayed while the queue handles requests from other organizations.
- Ensure that future methods execute as fast as possible. To ensure fast execution of batch jobs, minimize Web service callout times and tune queries used in your future methods. The longer the future method executes, the more likely other queued requests are delayed when there are a large number of requests in the queue.
- Test your future methods at scale. Where possible, test using an environment that generates the maximum number of future methods you’d expect to handle. This will help determine if delays will occur.
- Consider using batch Apex instead of future methods to process large numbers of records.
-
Anjali
MemberAugust 21, 2018 at 5:13 am in reply to: How many batch jobs can be added to the queue in Salesforce?Hi Madhulika,
You can have five queued or active batch jobs at one time. i.e. explicitly, the number of Batch Apex jobs whose status in the AsyncApexJob table are 'Processing' or 'Preparing'.
-
Hi Chanchal,
Database.AllowCallouts used to allow Callouts in batch Apex,"Callouts include HTTP requests as well as methods defined with the webService keyword".
-
Hi Chanchal,
AsyncApexJob - It Represents an individual Apex sharing recalculation job, a batch Apex job, a method with the future annotation, or a job that implements Queueable.
BatchApex job represents an asynchronous Apex class using the Batchable interface via implements Database Batchable. Using Batch Apex allows for the asynchronous processing of a long running process on a large data volume by breaking the job into manageable chunks to be processed separately
-
Anjali
MemberAugust 20, 2018 at 11:19 am in reply to: What is the use of the invocable method annotation in Salesforce?Hi Avnish,
Invocable Method annotation used to identify methods that can be run as invocable actions.
Invocable methods are called with the REST API and used to invoke a single Apex method. Invocable methods have dynamic input and output values and support describe calls. -
Anjali
MemberAugust 20, 2018 at 7:40 am in reply to: How to protect contact information from being seen by the marketing team?Hi Parul,
By setting campaign member sharing settings. To let your marketing department see only the campaign member details that you want them to. Sharing rules for campaign members can inherit from lead and contact rules or from the campaign.
To let users see only the campaign members whose lead or contact records they have access to, choose Controlled by Lead or Contact in Sharing Settings. To let users who have access to a campaign see campaign member details, choose Controlled by Campaign. Access that’s provided by a user’s role or profile supersedes the organization-wide defaults.
-
Anjali
MemberAugust 20, 2018 at 5:27 am in reply to: Can we include external Library into Salesforce Lightning Component?Hi Prachi,
Yes ,we can use multiple libraries in our lightning component like JQuery, Bootstrap, custom CSS and custom Javascript libraries from a local resource (static resource).
-
Anjali
MemberAugust 20, 2018 at 5:22 am in reply to: Why do we use the helper method in Salesforce lightning component?Hi Anurag,
Helper method used to place all reusable code in it,which share code between different controller methods, and even with renderer methods.
-
Anjali
MemberAugust 17, 2018 at 1:01 pm in reply to: What is a Javascript remoting for apex controllers in Salesforce? Explain its parts.Hi Madhulika
JavaScript remoting is a tool that front-end developers can use to make an AJAX request from a Visualforce page directly to an Apex controller. JavaScript remoting allows you to run asynchronous actions by decoupling the page from the controller and to perform tasks on the page without having to reload the entire page.
JavaScript remoting has three parts:
- The remote method invocation you add to the Visualforce page, written in JavaScript.
- The remote method definition in your Apex controller class. This method definition is written in Apex, but there are few differences from normal action methods.
- The response handler callback function you add to or include in your Visualforce page, written in JavaScript.
-
Anjali
MemberAugust 17, 2018 at 5:46 am in reply to: What is BusinessHours Class in Salesforce Apex? And how we can use them?Hi Avnish,
You can use the BusinessHours methods to set the Businesshours at which your customer support team operates.
The following are methods for BusinessHours. All methods are static.
- add(businessHoursId, startDate, intervalMilliseconds) - Adds an interval of time from a start Datetime traversing business hours only. Returns the result Datetime in the local time zone.
- addGmt(businessHoursId, startDate, intervalMilliseconds) - Adds an interval of milliseconds from a start Datetime traversing business hours only. Returns the result Datetime in GMT.
- diff(businessHoursId, startDate, endDate) - Returns the difference in milliseconds between a start and end Datetime based on a specific set of business hours.
- isWithin(businessHoursId, targetDate) - Returns true if the specified target date occurs within business hours. Holidays are included in the calculation.
- nextStartDate(businessHoursId, targetDate) - Starting from the specified target date, returns the next date when business hours are open. If the specified target date falls within business hours, this target date is returned.
-
Anjali
MemberAugust 17, 2018 at 5:30 am in reply to: Are cross filters supported in Joined Reports?Hello Chanchal,
Currently cross filters are not supported in Joined Reports.
-
Anjali
MemberAugust 17, 2018 at 5:22 am in reply to: What Is Analytical Snapshot in the report in Salesforce?Hi Chanchal,
Salesforce defines Analytic Snapshots as “allowing you to load data from a Custom Report to a Custom Object on a regularly scheduled basis.” This in turn allows you to create Reports and Dashboards based on the data in the Custom Object.
Analytic Snapshots are comprised of three things:
- A source Report of type Tabular or Summary
- A Custom Object with fields matching the columns in the source Report
- An Analytic Snapshot definition, which maps fields and schedules the snapshot runs
-
Anjali
MemberAugust 16, 2018 at 5:40 am in reply to: How to pass the picklist value to javascript controller in Salesforce Lightning?Hi Anurag,
You should create schema for the picklist and call this method from component using aura init. this will fetch picklist value on loading the component.
public static List<String> getLeadStatus(){
List<String> options = new List<String>();
Schema.DescribeFieldResult fieldResult = lead.status.getDescribe();
List<Schema.PicklistEntry> ple = fieldResult.getPicklistValues();
for (Schema.PicklistEntry f: ple) {
options.add(f.getLabel());
}return options;}Java script controller code -
doInit : function(component, event, helper) {
var action = component.get("c.getLeadStatus");
var inputsel = component.find("InputSelectDynamic");
var opts=[];
action.setCallback(this, function(a) {
for(var i=0;i< a.getReturnValue().length;i++){
opts.push({"class": "optionClass", label: a.getReturnValue()[i], value: a.getReturnValue()[i]});
}
inputsel.set("v.options", opts); });
$A.enqueueAction(action);
}For picklist -
<ui:inputSelect label="Status" class="dynamic" aura:id="InputSelectDynamic" value="{!v.leadObj.Status}" required="true"/>
-
Anjali
MemberAugust 16, 2018 at 5:35 am in reply to: How can we add customise case flag icon in Salesforce?Hi Shradha,
You can add customise case flag icon by creating a picklist field for flag and storing flags in your orgs document folder.
And then creating the formula field in your object for the access like-
IF( ISPICKVAL(CountrySelect__c, "us"),IMAGE('/servlet/servlet.FileDownload?file=0156F00000FC2Ou', 'us',100,100),
IF( ISPICKVAL(CountrySelect__c, "India"),IMAGE('/servlet/servlet.FileDownload?file=0156F00000FC2QW', 'India',100, 100),""
)
) -
Anjali
MemberAugust 16, 2018 at 5:19 am in reply to: What is the governor limit of sendEmail() to sent bulk email?Hi Parul
If emails are sent via APEX you can only send 10 sendEmail() methods in one transaction. These APEX emails are usually sent from behind a Visualforce page or from a trigger.Of these emails sent via APEX there is a limit of 1000 single emails and 1000 mass emails per day to external addresses.If emails are sent via Workflow rules, then there is a limit of 1000 emails per day per Standard Salesforce license. So if you have 10 Salesforce licenses you can send out 10,000 emails in one day.You can send an unlimited number of emails to your internal users.
-
Anjali
MemberAugust 9, 2018 at 5:25 am in reply to: What is difference between SingleEmailMessage and MassEmailMessage in Salesforce?SingleEmailMessage-The SingleEmailMessage can send message related to only single record.
setTargetObjectId - The ID of the contact, lead, or user to which the email will be sent.
Used for single record
Messaging.SingleEmailMessageMassEmailMessage -MassEmailMessage can send mails related to multiple records (WhatId and TargetObjectId).
setTargetObjectIds - A list of IDs of the contacts, leads, or users to which the email will be sent.
Used for multiple records
Messaging.MassMailMessage. -
Anjali
MemberAugust 9, 2018 at 5:15 am in reply to: Which Salesforce objects can be imported by Import Wizard?Hi Anurag,
You can import data for many standard Salesforce objects, including accounts, contacts, leads, solutions, campaign members, and person accounts. You can also import data for custom objects. You can import up to 50,000 records at a time.