shariq
IndividualForum Replies Created
-
shariq
MemberSeptember 22, 2018 at 10:50 AM in reply to: What is an attribute tag? What is the syntax for including them?An attribute tag is a definition of an attribute of a custom component and it can only be a child of a component tag.
Note that you cannot define attributes with names like id or rendered. These attributes are automatically created for all custom component definitions. The below piece of code shows the syntax for including them:
<apex:component>
<apex:attribute name="myValue" description="This is the value for the component." type="String" required="true"/>
<apex:attribute name="borderColor" description="This is color for the border." type="String" required="true"/><h1 style="border:{!borderColor}">
<apex:outputText value="{!myValue}"/>
</h1></apex:component>
-
shariq
MemberSeptember 22, 2018 at 10:49 AM in reply to: How many records can a select query return? How many records can a SOSL(Salesforce Object Query Language) query return?The Governor Limits enforces the following:-
Maximum number of records that can be retrieved by SOQL command: 50,000.
Maximum number of records that can be retrieved by SOSL command: 2,000
-
shariq
MemberSeptember 22, 2018 at 10:48 AM in reply to: How to get the UserID of all the currently logged in users using Salesforce Apex code?You can get the ID’s of all the currently logged in users by using this global function: UserInfo.getUserId().
-
shariq
MemberSeptember 22, 2018 at 10:45 AM in reply to: What is the difference between a standard controller and a custom controller in Salesforce Apex?Standard controller in Apex, inherits all the standard object properties and standard button functionality directly. It contains the same functionality and logic that are used for standard Salesforce pages.
Custom controller is an Apex class that implements all of the logic for a page without leveraging a standard controller. Custom Controllers are associated with Visualforce pages through the controller attribute
-
shariq
MemberSeptember 22, 2018 at 10:44 AM in reply to: How many callouts to external service can be made in a single Salesforce Apex transaction?Governor limits will restrict a single Apex transaction to make a maximum of 100 callouts to an HTTP request or an API call.
-
shariq
MemberSeptember 22, 2018 at 10:41 AM in reply to: Why do we need to write test classes and how to identify if a class is a test class in Salesforce?Software developers from around the world will unanimously agree that writing code in test classes makes debugging more efficient. Why? That is because test classes help in creating robust and error-free code be it Apex or any other programming language. Since Unit tests are powerful in their own right, Salesforce requires you to write test classes in Apex code.
Why are they so powerful? Because test classes and test methods verify whether a particular piece of code is working properly or not. If that piece of code fails, then developers/ testers can accurately locate the test class having the faulty bug.
Test classes can be determined easily because every test class will be annotated with @isTest keyword. In fact, if we do not annotate a test class with @isTest, then it cannot be defined as a test class. Similarly, any method within a class which has the keyword testMethod, is a test method.
-
shariq
MemberSeptember 22, 2018 at 10:38 AM in reply to: What are custom labels in Salesforce? What is the character limit of custom label?Custom labels are custom text values that can be accessed from Apex classes or Visualforce pages. The values here can be translated into any language supported by Salesforce.
Their benefit is that they enable developers to create multilingual applications which automatically presents information in a user’s native language.You can create up to 5,000 custom labels for your organization, and they can be up to 1,000 characters in length.
-
shariq
MemberSeptember 22, 2018 at 10:38 AM in reply to: How many active assignment rules can you have in a lead/ case in Salesforce?Only one rule can be active at a time.
-
shariq
MemberSeptember 22, 2018 at 10:37 AM in reply to: What are the types of custom settings in Salesforce? What is the advantage of using custom settings?There are two types of custom settings in Salesforce: List Custom Settings and Hierarchy Custom Settings.
List Custom Settings are a type of custom settings that provides a reusable set of static data that can be accessed across your organization irrespective of user/ profile.
Hierarchy Custom Settings are another type of custom settings that uses built-in hierarchical logic for “personalizing” settings for specific profiles or users.
The advantage of using custom settings is that it allows developers to create a custom set of access rules for various users and profiles.
-
shariq
MemberSeptember 22, 2018 at 10:36 AM in reply to: For which criteria in Salesforce workflow “time dependent workflow action” cannot be created?Time dependent workflow action cannot be create for: “created, and every time it’s edited”.
-
shariq
MemberSeptember 22, 2018 at 10:32 AM in reply to: Explain the term “Data Skew” in Salesforce.“Data skew” is a condition which you will encounter when working for a big client where there are over 10,000 records. When one single user owns that many records we call that condition ‘ownership data skew’.
When such users perform updates, performance issues will be encountered because of “data skew”. This happens when a single user/ members of a single role own most of the records for a particular object.
-
shariq
MemberSeptember 22, 2018 at 10:29 AM in reply to: What are the different types of object relations in Salesforce? How can you create them?No list of Salesforce interview questions is complete without involving relationships between objects in Salesforce. Relationships in Salesforce can be used to establish links between two or more objects.
The different types of object relationships in Salesforce are:
Master-Detail Relationship (1:n):- It is a parent-child relationship in which the master object controls the behavior of the dependent child object. It is a 1:n relationship, in which there can be only one parent, but many children. The main concept you need to know is that, being the controlling object, the master field cannot be empty. If a record/ field in master object is deleted, the corresponding fields in the dependent object are also deleted. This is called a cascade delete. Dependent fields will inherit the owner, sharing and security settings from its master.You can define master-detail relationships between two custom objects, or between a custom object and standard object as long as the standard object is the master in the relationship.
Lookup Relationship (1:n):- Lookup relationships are used when you want to create a link between two objects, but without the dependency on the parent object. Similar to Master-Detail relationship, you can think of this as a form of parent-child relationship where there is only one parent, but many children i.e. 1:n relationship. The difference here is that despite being controlling field, deleting a record will not result in automatic deletion of the lookup field in the child object. Thus the records in the child object will not be affected and there is no cascade delete here. Neither will the child fields inherit the owner, sharing or security settings of its parent.
Junction Relationship (Many-To-Many):- This kind of a relationship can exist when there is a need to create two master-detail relationships. Two master-detail relationships can be created by linking 3 custom objects. Here, two objects will be master objects and the third object will be dependent on both the objects. In simpler words, it will be a child object for both the master objects.
-
shariq
MemberSeptember 22, 2018 at 10:29 AM in reply to: What are the different types of reports available in Salesforce and can we mass delete them?Salesforce Report Types
1. Tabular reports
Simple Excel type tables which provide a list of items with the grand total
2. Summary reports
Similar to Tabular reports, but also have functionality of grouping rows, viewing subtotals & creating charts
3. Matrix reports
Two-dimensional reports which allow you to group records both by row and column
4. Joined reports
Multiple blocks showing data from different reports based on same or different report types
Another important point to note here is that, only Summary reports and Matrix reports can be fed as data source for dashboards. Tabular and Joined reports cannot be used as data source for dashboards.Can we mass delete reports in Salesforce? Of Course we can mass delete reports in Salesforce. The option to mass delete reports can be found under Data Management in Setup.
-
shariq
MemberSeptember 22, 2018 at 10:28 AM in reply to: What are dynamic dashboards and how can they be scheduled in Salesforce?Before we understand dynamic dashboards, let us first understand static dashboards. Static dashboards are the basic dashboard types that will be visible to any user who has made a report out of his data. An example of this is what a Sales manager/ Marketing manager would be able to see on his Salesforce org. In other words, a normal dashboard shows data only from a single user’s perspective. Now comes the concept of dynamic dashboards.
Dynamic dashboards are used to display information which is tailored to a specific user. Let us consider the same example as above. In case the Sales manager wants to view the report generated specific to only one of his team members, then he can use dynamic dashboards.
You can use dynamic dashboards when you want to show user-specific data of a particular user, such as their personal quotas and sales, or number of case closures, or leads converted etc.
You can also use a normal/ static dashboard when you want to show regional or organization-wide data to a set of users, such as a particular region’s sales number, or a particular support team’s performance on case closures.As far as the second part of the question is concerned, no we cannot schedule a dynamic dashboard. That is because whenever we open the dashboard, it will show the data generated in real-time.
-
shariq
MemberSeptember 22, 2018 at 10:25 AM in reply to: What are the different types of email templates that can be created in Salesforce?The different types of Email templates are listed in the below table:-
Text
All users can create or change this template
HTML with letterhead
Only Administrators and users having “Edit HTML Templates” permissions can create this template based on a letterhead.
Custom HTML
Administrators and users having “Edit HTML Templates” permissions can create this template without the need of a letterhead
Visualforce
Only administrators and developers can create this template. Advanced functionalities like merging data from multiple records is available only in this template -
shariq
MemberSeptember 22, 2018 at 10:19 AM in reply to: Can you edit an apex trigger/ apex class and Visualforce pages in production environment?No, it is not possible to edit apex classes and triggers directly in production environment.
It needs to be done first in Developer edition or testing org or in Sandbox org. Then, to deploy it in production, a user with Author Apex permission must deploy the triggers and classes using deployment tools.
However, Visualforce pages can be created and edited in both sandbox and in production.
Only if the page has to do something unique (different values), it would have to be developed via Sandbox.
-
shariq
MemberSeptember 22, 2018 at 10:18 AM in reply to: What is a sandbox org? What are the different types of sandboxes in Salesforce?A sandbox is a copy of the production environment/ org, used for testing and development purposes. It’s useful because it allows development on Apex programming without disturbing the production environment.
When can you use it?
You can use it when you want to test a newly developed Force.com application or Visualforce page. You can develop and test it in the Sandbox org instead of doing it directly in production.This way, you can develop the application without any hassle and then migrate the metadata and data (if applicable) to the production environment. Doing this in a non-production environment allows developers to freely test and experiment applications end to end.
Types of Sandboxes are:
Developer
Developer Pro
Partial Copy
Full -
In Salesforce, it is the Governor Limits which controls how much data or how many records you can store in the shared databases. Why? Because Salesforce is based on the concept of multi-tenant architecture. In simpler words, Salesforce uses a single database to store the data of multiple clients/ customers. The below image will help you relate to this concept.
To make sure no single client monopolizes the shared resources, Salesforce introduced the concept of Governor Limitswhich is strictly enforced by the Apex run-time engine.
Governor Limits are a Salesforce developer’s biggest challenge. That is because if the Apex code ever exceeds the limit, the expected governor issues a run-time exception that cannot be handled. Hence as a Salesforce developer, you have to be very careful while developing your application.
Different Governor Limits in Salesforce are:
Per-Transaction Apex Limits
Force.com Platform Apex Limits
Static Apex Limits
Size-Specific Apex Limits
Miscellaneous Apex Limits
Email Limits
Push Notification Limits-
This reply was modified 7 years, 6 months ago by
shariq.
-
This reply was modified 7 years, 6 months ago by
-
shariq
MemberSeptember 22, 2018 at 10:16 AM in reply to: Can two users have the same profile and two profiles be assigned to the same user in Salesforce?Profiles determine the level of access a user can have in a Salesforce org.
As far as the first part of the question is concerned, Yes. One profile can be assigned to any number of users. Take the example of a Sales or Service team in a company. The entire team will be assigned the same profile. The admin can create one profile: Sales Profile, which will have access to the Leads, Opportunities, Campaigns, Contacts and other objects deemed necessary by the company.
In this way, many users can be assigned the same profile. In case the team lead or manager need access to additional records/ objects then it can be done by assigning permission sets only for those users.
Answering the second part of the question, each user can only be assigned 1 profile.
-
shariq
MemberSeptember 22, 2018 at 3:46 AM in reply to: What is the use of Salesforce chatter REST API?Hi,
Use Chatter REST API to: Build a mobile app. Integrate a third-party web application with Salesforce so it can notify groups of users about events. Display a feed on an external system, such as an intranet site, after users are authenticated.
Hope this helps.
-
shariq
MemberSeptember 22, 2018 at 3:45 AM in reply to: What is the difference between bound and unbound expressions in Salesforce?Hi,
When we work with components, the first thing we do is declaring the attributes and initialize them. We use expressions for initializing our components. There are two types of expressions, bound and unbound that are used to perform data binding in Lightning Components. Let’s learn about the expressions in detail.
Bound and Unbound Expressions
Bound Expression: Bound Expression is represented as {!v.str}. Whenever the value of the string is changed, this expression will reflect the change and also affect the components where it is used, we can say the value change dynamically through this expression.Unbound Expression: Unbound Expression is represented as {#v.str}. Whenever the value of the string is changed, this expression will not reflect the change, we can say the value remains static through this expression.
Example
Create a lightning component and add the following code:<aura:component >
<aura:attribute name="str" type="string" default="Hello World!"/>
<ui:outputText value="Enter a string value : "/><ui:inputText value="{!v.str}"/>
<br/><br/>
<ui:outputText value="{#v.str}"/>
<br/><br/>
<ui:outputText value="{!v.str}"/>
</aura:component>Hope this helps.
-
shariq
MemberSeptember 22, 2018 at 3:43 AM in reply to: Which Objects can we access without using seeAllData=true?Hi,
- User
- profile
- organization
- AsyncApexjob
- Corntrigger
- RecordType
- ApexClass
- ApexComponent
- ApexPage
- custom metadata types.
Hope this helps
-
shariq
MemberSeptember 22, 2018 at 3:41 AM in reply to: What are the drawbacks of JSON in Salesforce?Hi,
Lot of difficulty for developers in debugging JSON.
Hope this helps.
-
Hi,
User can see their limit form setup, by clicking data.com administration/Users. From the data.com users section, user can see their monthly limit and how many records are exported during the month.
Hope this helps.
-
shariq
MemberSeptember 22, 2018 at 3:30 AM in reply to: What is Macros in Salesforce Case Automation?Hi,
Macros automate a series of repetitive keystrokes that support agents make in the Salesforce Console for Service. You can quickly complete repetitive tasks, such as updating the case status, by running a macro. It's simple to clone, share, and delete macros.
Hope this helps.