Anjali Baranwal
IndividualForum Replies Created
-
Anjali
MemberOctober 5, 2018 at 5:22 am in reply to: What is BSON? and how it is different from Salesforce Json?Hi Chanchal,
BSON is the binary encoding of JSON-like documents that MongoDB uses when storing documents in collections.
BSON is designed to be efficient in space, but in some cases is not much more efficient than JSON. In some cases BSON uses even more space than JSON. The reason for this is another of the BSON design goals: traversability. BSON adds some "extra" information to documents, like length of strings and subobjects. This makes traversal faster.
BSON is also designed to be fast to encode and decode. For example, integers are stored as 32 (or 64) bit integers, so they don't need to be parsed to and from text. This uses more space than JSON for small integers, but is much faster to parse.
-
Anjali
MemberOctober 5, 2018 at 5:20 am in reply to: List types Natively supported by Salesforce JSON?Hi Chanchal,
JSON data consists of the following types:
Array: ordered values, separated by commas, enclosed in square brackets
Boolean: true or false
null: empty value
Object: unordered key/value collection enclosed in curly braces
String: Unicode enclosed in double quotation marks
Value: a string, number, true, false, null
Whitespace: used between tokens
Number: double-precision floating point number, including exponential numbers, NaN, and Infinity. Octal and hexadecimal are not supported. -
Anjali
MemberOctober 4, 2018 at 1:06 pm in reply to: How many active assignment rules can we have in a Salesforce lead?Hi Anurag,
You can create more than one set of many lead assignment rules, but only one can be active at a time. The active lead assignment rule is automatically selected in several scenarios, including web-to-lead submissions.
-
Anjali
MemberOctober 4, 2018 at 1:02 pm in reply to: Difference between Data loader ‘Export’ & ‘Export All’ in SalesforceHi Anurag,
Export All: Valid Records + Garbage: This is required when you are taking entire Backup just to make sure your deleted records are also valuable for Organization. Some crazy sells guys delete record and again they go back and undelete. The reason is in a large org they get so much leads + Junk leads they get confused which is better and which is not .
Export: Just export the records that is showen under your tab and those are UnDeleted(Healthy) Records. That backup is required for various reasons. Sometimes Business want you to do mass update of Users Org(CompanyName) so the export of User(User) will make more sense.
-
Hi Chanchal,
Object.create method is another method to create new object in JavaScript.
Object.create methods accepts two arguments.
prototypeObject: Newly created objects prototype object. It has to be an object or null.
propertiesObject: Properties of the new object. This argument is optional -
Anjali
MemberOctober 3, 2018 at 1:47 pm in reply to: How Access To Reports And Dashboard Is Controlled In Salesforce?Hi Anurag,
Access to reports and dashboards is controlled through the folder settings that contain them. Keep in mind that if users have access to the underlying data in a report, it is best practice to grant access to the related dashboards that contain those reports, too. Each level of access to a report and dashboard folder consists of a combination of specific user permissions, which can be fine-tuned by assigning or removing one or more permissions
-
Hi,
The Dependent Picklist Field type is a special type of single-select picklist that displays different available values depending on the current selection in another (main) picklist.
- This reply was modified 6 years, 1 month ago by Anjali.
-
Hi,
Dependent picklists in Salesforce are very useful. They are used to limit the list of values in one picklist based on the value of another picklist.
An example would be if you had a list of countries and states/provinces . If you select a country you would want the list of states/provinces to be filtered in the next picklist.
Visualforce page
<apex:page controller="DependentPicklistExpClass"> <apex:form> <apex:pageblock> <apex:pageblocksection columns="2"> <apex:pageblocksectionitem> <apex:outputlabel value="Country"> </apex:outputlabel> </apex:pageblocksectionitem> <apex:pageblocksectionitem> <apex:selectlist size="1" value="{!country}"> <apex:selectoptions value="{!countries}"></apex:selectoptions> <apex:actionsupport event="onchange" rerender="a"></apex:actionsupport> </apex:selectlist> </apex:pageblocksectionitem> <apex:pageblocksectionitem> <apex:outputlabel value="State"></apex:outputlabel> </apex:pageblocksectionitem> <apex:pageblocksectionitem> <apex:selectlist size="1" value="{!state}" id="a"> <apex:selectoptions value="{!states}"></apex:selectoptions> </apex:selectlist> </apex:pageblocksectionitem> </apex:pageblocksection> </apex:pageblock> </apex:form> </apex:page>
Apex Class
public class DependentPicklistExpClass { public String country{get;set;} public String state{get;set;} public List getCountries() { list options=new list(); options.add(new SelectOption('none','countries')); options.add(new SelectOption('US','United States')); options.add(new SelectOption('IN','India')); return options; } public list getStates() { list options=new list(); if(country=='US') { options.add(new SelectOption('none','states')); options.add(new SelectOption('st1','State1')); options.add(new SelectOption('st2','State2')); } else if(country=='IN') { options.add(new SelectOption('none','states')); options.add(new SelectOption('UP','Uttar Pradesh')); options.add(new SelectOption('UK','Uttarakhand')); } else { options.add(new SelectOption('none','states')); } return options; } }
-
Hi,
Attributes are named parameters in your component that you can display, manipulate and otherwise interact with throughout the component.
In your Developer Console, navigate to New > Lightning Component, and create a new bundle named abcComponent2. Add the following code and save.
<aura:component >
<aura:attribute name="greeting" type="String" default="Hello!" />
<h1>Component 2 - Attributes</h1>
<p>{!v.greeting} from Aura.</p>
</aura:component>You’ll notice that the attribute is called “greeting” and that the expression {!v.greeting} also refers to “greeting”. The {!something} syntax is likely familiar to anyone who’s worked in Visualforce. The v in {!v.something} represents the “view”. So one way to think of how this component works is that the <aura:attribute /> tag puts a field on the view with a default value, and the {!v.something} pulls the value of the field out of the view and does something with it.
-
Hi Prachi,
Email Services -You can use email services to process the contents, headers, and attachments of inbound email. For example, you can create an email service that automatically creates contact records based on contact information in messages.
You can associate each email service with one or more Salesforce-generated email addresses to which users can send messages for processing. To give multiple users access to a single email service, you can:- Associate multiple Salesforce-generated email addresses with the email service and allocate those addresses to users.
- Associate a single Salesforce-generated email address with the email service, and write an Apex class that executes according to the user accessing the email service. For example, you can write an Apex class that identifies the user based on the user's email address and creates records on behalf of that user.
-
Anjali
MemberSeptember 28, 2018 at 6:47 am in reply to: What is Hybrid Cloud and Public Cloud in Salesforce?Hi Anurag,
Public clouds are the most common way of deploying cloud computing. The cloud resources (like servers and storage) are owned and operated by a third-party cloud service provider and delivered over the Internet. Microsoft Azure is an example of a public cloud. With a public cloud, all hardware, software and other supporting infrastructure is owned and managed by the cloud provider. In a public cloud, you share the same hardware, storage and network devices with other organisations or cloud “tenants.” You access services and manage your account using a web browser. Public cloud deployments are frequently used to provide web-based email, online office applications, storage and testing and development environments.
Hybrid clouds combine on-premises infrastructure, or private clouds, with public clouds so organisations can reap the advantages of both. In a hybrid cloud, data and applications can move between private and public clouds for greater flexibility and more deployment options. For instance, you can use the public cloud for high-volume, lower-security needs such as web-based email and the private cloud (or other on-premises infrastructure) for sensitive, business-critical operations like financial reporting. In a hybrid cloud, “cloud bursting” is also an option. This is when an application or resource runs in the private cloud until there is a spike in demand (such as seasonal event like online shopping or tax filing), at which point the organisation can “burst through” to the public cloud to tap into additional computing resources.
-
Anjali
MemberSeptember 27, 2018 at 1:53 pm in reply to: What is use of ui:scrollerWrapper in Salesforce?Hi Shradha,
A ui:scrollerWrapper creates a container that enables native scrolling in the Salesforce app. This component enables you to nest more than one scroller inside the container. Use the class attribute to define the height and width of the container. To enable scrolling, specify a height that's smaller than its content.
This example creates a scrollable area with a height of 300px.<aura:component>
<ui:scrollerWrapper class="scrollerSize">
<!--Scrollable content here -->
</ui:scrollerWrapper>
</aura:component>/** CSS **/
.THIS.scrollerSize {
height: 300px;
} -
Hi Anurag,
Record types let you offer different business processes, picklist values, and page layouts to different users. You might create record types to differentiate your regular sales deals from your professional services engagements, offering different picklist values for each.
-
Hi,
Global value providers are-
globalID-The globalId global value provider returns the global ID for a component. Every component has a unique globalId, which is the generated runtime-unique ID of the component instance.
$Browser-The $Browser global value provider returns information about the hardware and operating system of the browser accessing the application.
$Label-The $Label global value provider enables you to access labels stored outside your code.
$Locale-The $Locale global value provider returns information about the current user’s preferred locale.
$Resource-The $Resource global value provider lets you reference images, style sheets, and JavaScript code you’ve uploaded in static resources.
-
Anjali
MemberSeptember 26, 2018 at 12:59 pm in reply to: What is Lightning Design System (SLDS) in Salesforce?Hi,
The Salesforce Lightning Design System (SLDS) is a trusted, platform-agnostic design system that was built from the ground up to provide developers with everything needed to implement the look-and-feel of Lightning Experience and the Salesforce1 mobile application.
SLDS ensures consistency across all components and applications, whether they are written by Salesforce developers, ISV partners, or even Salesforce itself when designing and implementing product features.
Salesforce developed SLDS with four key design principles in mind:
-Clarity
-Efficiency
-Consistency
-Beauty -
Anjali
MemberSeptember 26, 2018 at 9:11 am in reply to: How To Display The Formatted Number / Date In Salesforce VisualForce?Hi Anurag,
Date in MM/DD/YYYY format (Ex. 01/01/2011)-
<apex:outputText value="{0,date,MM'/'dd'/'yyyy}"> <apex:param value="{!mybirthday}" /> </apex:outputText>
Date in YYYY-MM-DD format (Ex. 2011-01-01)-
<apex:outputText value="{0,date,yyyy-MM-dd}"> <apex:param value="{!mybirthday}" /> </apex:outputText>
Number with two decimal points – (Ex. 10,000.00)
<apex:outputText value="{0, number,###,###,##0.00}"><apex:param value="{!mynumber}" /></apex:outputText>
Number without decimal points – (Ex. 10,000)
<apex:outputText value="{0, number,###,###,##0}"><apex:param value="{!mynumber}" /></apex:outputText>
-
Hi,
A Dynamic Dashboard enables multiple users to access a dashboard that was previously accessed only by a single static user. This means that the dynamic dashboard can be used by a specific user alongside a logged-in user, and display data specific to both users accordingly.
Data for every Salesforce user in the organization becomes more streamlined with the help of Dynamic Dashboards. The needs to clone dashboards is eliminated, which enormously saves time and effort on the administrator’s part. Users are also able to access the dynamic dashboard easily and fuss-free.
-
Hi,
Dashboard is a page layout for visual display of your data. Each dashboard has 1:1 mapping for its component and report. One can clubbed multiple dashboard components to display a single report. The security settings is used to control the visibility of data. These dashboards are dynamic in nature. User can only view their own data as per their settings.
-
Hi,
Workflow is the automation of the following types of actions based on your organization’s processes:
Tasks – Assign a new task to a user, role, or record owner.
Email Alerts – Send an email to one or more recipients you specify.
Field Updates – Update the value of a field on a record.
Outbound Messages – Send a secure configurable API message (in XML format) to a designated listener -
Anjali
MemberSeptember 24, 2018 at 6:51 am in reply to: Differenciate between Trigger and Workflow in Salesforce?Hi,
Triggers:
1. Trigger can work across objects.
2. Trigger works before and after some actions + On different DML actions like Insert, Update, Delete, Undelete
3. Coding is required.
4. Often needed for roll-up type scenarios where roll up summary fields cannot be used and also when a record needs to be created on a different objectWorkflow rules:
1. Workflow Rules will be helpful to update the same object or master object in custom master-detail relationships.
2. Coding is not required and they currently can only result in a task, email, field update, or outbound message
3. Workflows work only after some actions i.e. entry criteria's
4. they can only cross objects in a master detail relationship, from the detail to the master, and only for certain scenarios (all custom to custom objects, some custom to standard objects, and even fewer standard to standard) -
Anjali
MemberSeptember 21, 2018 at 2:00 pm in reply to: Explain the various dashboard components in Salesforce?Hi Prachi,
Various dashboard components in Salesforce are-
chart-Use a chart when you want to show data graphically. You can choose from a variety of chart types.
gauge-Use a gauge when you have a single value that you want to show within a range of custom values
metric-Use a metric when you have one key value to display.
Table-Use a table to show a set of report data in column form.
Visualforce page-Use a Visualforce page when you want to create a custom component or show information not available in another component type.
-
Anjali
MemberSeptember 21, 2018 at 1:53 pm in reply to: What aura:method does in Salesforce Lightning Component?Hi Prachi,
aura:method: Use <aura:method> to define a method as part of a component’s API. This enables you to directly call a method in a component’s client-side controller instead of firing and handling a component event.
-
Anjali
MemberSeptember 21, 2018 at 1:37 pm in reply to: What is @testSetup annotation? When you will use it?Hi Prachi,
All methods that are annotated with @testSetup will be called test setup methods.
Few key points about TestSetUp methods:
- Method marked with @TestSetUp annotation executes before any testMethod.
Data created in this method doesn’t need to be created again and again, and it is by default available for all test methods. - There can be only one setup method per test class.
- Test setup methods are supported only with the default data isolation mode for a test class. If the test class or a test method has access to organization data by using the @isTest(SeeAllData=true)annotation, test setup methods aren’t supported in this class.
- Test setup methods are available for 24.0 or later versions only.
- Every test method will get unchanged version of the test data created in setup method, doesn’t matter if any other test method has modified the data.
- Method marked with @TestSetUp annotation executes before any testMethod.
-
Anjali
MemberSeptember 20, 2018 at 1:15 pm in reply to: What Are The Different Dashboard Components in Salesforce?Hi,
Different Dashboard Components are -
1. Chart: Use a chart when you want to show data graphically.
2. Gauge: Use a gauge when you have a single value that you want to show within a range of custom values.
3. Metric: Use a metric when you have one key value to display.
Enter metric labels directly on components by clicking the empty text field next to the grand total.
Metric components placed directly above and below each other in a dashboard column are displayed together as a single component.
4. Table: Use a table to show a set of report data in column form.
5. Visualforce Page: Use a Visualforce page when you want to create a custom component or show information not available in another component type
6. Custom S-Control: Custom S-Controls can contain any type of content that you can display or run in a browser, for example, a Java applet, an ActiveX control, an Excel file, or a custom HTML Web form -
Hi,
Custom report type can be created by selecting the objects of your interest and their relationships. The wizard will give access to all child objects of these selected objects. This type of report can be customize as per user need.