Anuj
IndividualForum Replies Created
-
A toast displays a message below the header at the top of a view. The message is specified by the message attribute. ... This example displays a toast message "Success! The record has been updated successfully."
-
Anuj
MemberApril 20, 2020 at 2:52 pm in reply to: What are the difference between attachments and content documents in Salesforce?Content Document Represents a document that has been uploaded to a library in Salesforce CRM Content or Salesforce Files.This object is available in API versions 17.0 and later for Salesforce CRM Content. This object is available in API version 21.0 and later for Salesforce Files.
Files attached to emails and events can be saved in Salesforce as Content documents (Files) or as Attachment objects, the former being the default way. In either case the files are stored in Salesforce under Notes & Attachments of the primary associated object(s)
-
Anuj
MemberApril 17, 2020 at 1:25 pm in reply to: What does .svg file stores in the lighting component bundle in Salesforce?SVG stands for Scalable Vector Graphics. It is a custom icon resource for components used in Lightning App Builder or Community Builder.
SVG (Scalable Vector Graphics) is an XML-based image format that lets you define lines, curves, shapes, and text. -
Data skew in Salesforce happens when large number of child records (more then 10k) are linked to one parent records.
Data skew primarily refers to a non uniform distribution in a dataset. ... The direct impact of data skew on parallel execution of complex database queries is a poor load balancing leading to high response time. -
Bucketing lets you quickly categorize report records without creating a formula or a custom field within Salesforce. When you create a bucket field, you define multiple categories (buckets) that are used to group report values.
-
RestResource Annotation. The @RestResource annotation is used at the class level and enables you to expose an Apex class as a REST resource. ... A URL mapping for my_url will only match a REST resource containing my_url and not My_Url . To use this annotation, your Apex class must be defined as global.
-
If your mock does return similar data to the real web service, then your tests can assert that your code that processes the response works correctly. You can also make the mock assert that you send the right request data out to the web service.
Setting up a mock means you don't have to add a Test.isRunningTest() in your product code: changing the code under test just to test it is best avoided.
If your code does no processing on the returned data then you are right it is a fairly pointless exercise.
The main value of unit tests is that they check your implemented logic, and if you use Continuous Integration they can get run many times a day and alert you if when making one change you have broken existing logic. Coverage is just one measure of how well your tests are doing and is not a goal in itself. Personally I target 90% coverage overall.For More Details Click on the below link:
https://developer.salesforce.com/blogs/developer-relations/2013/03/testing-apex-callouts-using-httpcalloutmock.html -
JSON is a format that encodes objects in a string. Serialization means to convert an object into that string. When transmitting data or storing them in a file, the data are required to be byte strings, but complex objects are seldom in this format.
-
Anuj
MemberApril 15, 2020 at 1:30 pm in reply to: How do you customize layout in lightning in salesforce?follow the below link for better understanding
https://www.youtube.com/watch?v=FspCgo1mA8g -
Anuj
MemberApril 15, 2020 at 1:27 pm in reply to: What are the different annotations in Salesforce?1. An apex annotation modifies the way a method or class is used similar to annotations in Java.
2. Annotations are defined with an initial @ symbol, followed by the appropriate keyword.
3. To add an annotation to a method, specify it immediately before the method or class definition.
EX:-
Public class classname @ future
Public static void methodname (String Name)
Apex supports the following annotations.
@ Deprecated
@ Future
@ Is test
@ Read-only
@ Remote action -
Skinny Table considerations:
1.Skinny tables don’t include soft-deleted rows (i.e., records in the Recycle Bin with isDeleted = true)
2.Automatically synchronizes the rows between the base object and the skinny table.
3.To ensure optimal performance, they contain only the minimum set of fields required to fulfill specific business use cases.
4.Adding a new field in skinny table, contact Salesforce support to re-create table again.
5.Skinny tables don’t get copied over to sandbox organizations
6.Skinny tables are custom tables in the underlying Force.com database.
7.Changing any field type in main table will invalid skinny table, contact salesforce support to re-create table again. -
Use External Services to connect to a service of your choice, invoke methods ... from the service into Salesforce—all with the help of an easy-to-use wizard. ... Create a flow using inputs such as user ID, which you can define in your schema.
-
Writing the whole code in trigger is also not a good practice. Hence you should call the Apex class and delegate the processing from Trigger to Apex class. Trigger Helper class is the class which does all the processing for trigger.
-
Use an indirect lookup relationship when the external data doesn’t include Salesforce record IDs.
An indirect lookup relationship links a child external object to a parent standard or custom object. When you create an indirect lookup relationship field on an external object, you specify the parent object field and the child object field to match against each other.
Specifically, you select a custom unique, external ID field on the parent object to match against the child’s indirect lookup relationship field, whose values are determined by the specified External Column Name.
If the external system uses case-sensitive values in the specified External Column Name, make sure that the parent object field is also case-sensitive. When you define the parent object’s custom field, select External ID, Unique, and Treat "ABC" and "abc" as different values (case sensitive). -
Hi Anjali,
In Salesforce and the Salesforce app, Chatter is enabled by default. Configure various Chatter features and customize the Chatter experience for your users on the Chatter Settings page in Setup.
To access the Chatter Settings page in Setup, enter Chatter in the Quick Find box and select Chatter Settings.
To disable Chatter for your entire organization, deselect Enable in the Chatter Settings section. -
Hi Sumit,
App is a collection of Tabs together which they form an Application.
OR
A Salesforce App is a group of Tabs that makes it easy for users to access a set of related features in the full Salesforce.com browser app -
Hi Sumit,
Objects in Salesforce is Database table that allow users to store data in the form of Row and Column same as like other Database table(example- MySql etc.)
There are two types of objects in Salesforce -
1. Standard Object.
2. Custom Object. -
Hi Manish,
The TestDataFactory class is a special type of class—it is a public class that is annotated with isTest and can be accessed only from a running test. Test utility classes contain methods that can be called by test methods to perform useful tasks, such as setting up test data. Test utility classes are excluded from the org’s code size limit. -
Hi Manish,
Unit tests are class methods that verify whether a particular piece of code is working properly. Unit test methods take no arguments, commit no data to the database, and send no emails. Such methods are flagged with the @isTest annotation in the method definition. -
Hi Marziya,
Data Skew Occurs when more than 10k child records linked to Single Parent Object in Salesforce.
Data Skew is of three types in Salesforce:-
1. Account Data Skew
2. Ownership Skew
3. Lookup Skew
for more details click on below link:
http://www.sfdcpoint.com/salesforce/data-skew-salesforce/ -
Hi Aditya,
enqueueAction(action) sends the request the server. More precisely, it adds the call to the queue of asynchronous server calls. That queue is an optimization feature of Lightning. -
Anuj
MemberApril 8, 2020 at 1:49 pm in reply to: What is apex:repeat is used for VisualForce pages in Salesforce?Hi Deepak,
An iteration component that allows you to output the contents of a collection according to a structure that you specify. The collection can include up to 1,000 items.
for example,
<apex:page controller="repeatCon" id="thePage">
<apex:repeat value="{!strings}" var="string" id="theRepeat">
<apex:outputText value="{!string}" id="theValue"/>
</apex:repeat>
</apex:page>
/*** Controller: ***/
public class repeatCon {
public String[] getStrings() {
return new String[]{'ONE','TWO','THREE'};
}
} -
Hi Marziya,
SOSL(Salesforce object search language) is used when we don't know the object to query the data then we used SOSL instead of SOQL i.e,
SOSL worked on multiple objects at a time. -
Anuj
MemberApril 7, 2020 at 1:31 pm in reply to: what is the difference between an access token and Refresh token in Salesforce?Hi Manish,
The refresh token only goes back to the authorization server, the access token goes to the (RS) resource server. ... Refreshing the access token will give you access to an API on the user's behalf, it will not tell you if the user's there. -
Hi Ayush,
Profile in Salesforce perform (CRED) operations i.e, Create,Read,Edit and Delete operations.