Anjali
IndividualForum Replies Created
-
Generally it clone the list of object but don’t hold any reference. A Deep Clone keeps the Id.
DeepClone can be used while creating a new record with the existing details of another record along with related lists.
-
Anjali
MemberFebruary 18, 2020 at 1:53 pm in reply to: Up to how many records can a big object hold in Salesforce?A big object stores and manages massive amounts of data on the Salesforce platform.
Available in: both Salesforce Classic and Lightning Experience
Available in: Enterprise, Performance, Unlimited, and Developer Editions for up to 1 million recordsAdditional record capacity and Async SOQL query is available as an add-on license. -
aggregate functions are-
- sum()
- count()
- min()
- max()
- avg()
-
Anjali
MemberFebruary 17, 2020 at 1:21 pm in reply to: What is the need of enqueueAction action in Salesforce Lightning?An enqueueAction (action) sends the request to the server. Specifically, add the call to the call queue of the asynchronous server. This queue is a Lightning optimization function.
- This reply was modified 4 years, 9 months ago by Forcetalks.
-
Anjali
MemberFebruary 17, 2020 at 1:07 pm in reply to: What are the best practices for test classes in Salesforce?Best practice for Test Classes-
- Never write a test class without starting it with ‘@isTest’.
- For negative and positive, always put assert statements.
- Avoid using hardcoded IDs.
- It must have 75% coverage but always try to increase it to 95%.
- Keep the real scenario in mind while writing a test class as it will handle any number of records.
- Each branch of conditional logic must be tested.
- This reply was modified 4 years, 9 months ago by Forcetalks.
-
Anjali
MemberFebruary 14, 2020 at 1:06 pm in reply to: How to handle Mixed DML Operations in Salesforce ?Mixed DML operation is an error which occur when you create or update records through Process Builder or validation rule.
Please refer the link and understand about this error-
https://help.salesforce.com/articleView?id=000315345&type=1&mode=1
-
From one site when an external URL is accessed like any other webservice or website, then it is done through callout.
-
Anjali
MemberFebruary 14, 2020 at 12:55 pm in reply to: Why Future method must be static in Salesforce ?As static makes it utility method rather than normal method. And future method need to be accessed from any class and cannot depend on any instance.
-
A tree is visualization of a structure hierarchy. A branch can be expanded or collapsed.
Please refer the link to understand more- https://www.lightningdesignsystem.com/components/tree-grid/
-
Chaining Jobs: You can chain one job to another job by starting a second job from a running job. Chaining jobs is useful when you need to do some sequential processing. Previously Salesforce did not support to make a chaining webservice callout, but you can achieve this using queueable interface.
-
Anjali
MemberFebruary 13, 2020 at 2:27 pm in reply to: I want to delete a user in Salesforce. Can i do that.?No, you cannot delete the user but yes, you can deactivate or freeze the user.
-
Anjali
MemberFebruary 12, 2020 at 2:28 pm in reply to: What is the functionality of <aura:iteration> in Salesforce Lightning ?aura:iteration-
iterates over a collection of items and renders the body of the tag for each item. Data changes in the collection are rerendered automatically on the page. It also supports iterations containing components that are created exclusively on the client-side or components that have server-side dependencies.
-
Anjali
MemberFebruary 12, 2020 at 2:26 pm in reply to: What is the use of connected app in Salesforce?A connected app is a framework that enables an external application to integrate with Salesforce using APIs and standard protocols, such as SAML, OAuth, and OpenID Connect. Connected apps use these protocols to authenticate, authorize, and provide single sign-on (SSO) for external apps.
-
Anjali
MemberFebruary 12, 2020 at 2:23 pm in reply to: what is the functionality of “.setCallback()” method in Salesforce Lightning ?setCallback (Object scope,function callback,String name)
Sets the callback function that is executed after the server-side action returns. Call a server-side action from a client-side controller using callback.
Parameters
scope : Object The scope in which the function is executed. You almost always want to set scope to the keyword this.
callback : function The callback function to run when the server-side action completes.
name : String The action state that the callback is associated with. -
Anjali
MemberFebruary 11, 2020 at 2:30 pm in reply to: Can a trigger have a static keyword in its code in Salesforce?A trigger cannot have a static keyword in its code.
-
Anjali
MemberFebruary 11, 2020 at 2:27 pm in reply to: What is the advantage of lightning in Salesforce?Some of the advantages of lightning in Salesforce are mentioned below:
- Avoid server calls
- Lazy loading to increase the performance
- Faster devlopment
- Two-way binding
- Lightning OUT
-
Anjali
MemberFebruary 11, 2020 at 2:23 pm in reply to: When Field history is updated for processing data in Salesforce?When the trigger is successfully finished, then the field history of processing data is updated.
-
The heap size is the amount of memory allocated to objects that are being defined in your Apex code. And Apex code puts in a limit to the total allowed size of the apex heap size. This governor limit is calculated at runtime and depends on how the governor is invoked.
- This reply was modified 4 years, 9 months ago by Forcetalks.
-
assertEquals() is used to validate two values are equal. Basically it is used in test method. This method asserts that the first two arguments, x and y are the same, if they are not a runtime exception is thrown.
-
Anjali
MemberFebruary 10, 2020 at 2:19 pm in reply to: What is the difference between List, Map and Set in Salesforce?List- it is an ordered collection.
Set- it is an unordered collection.
Map- it is a collection of key-value pairs.
- This reply was modified 4 years, 9 months ago by Forcetalks.
-
Anjali
MemberFebruary 6, 2020 at 2:38 pm in reply to: Why we used handler class in trigger in Salesforce?It is best practise to write one trigger per Object and process all handler in apex class that is Handler, instead of writing logic in trigger.
-
Variants change the appearance of a component and are controlled by the variant attribute.
Please go through the link- https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/lightning_base_variants.htm
-
The scratch org is a source-driven and disposable deployment of Salesforce code and metadata. A scratch org is fully configurable, allowing developers to emulate different Salesforce editions with different features and preferences.
- This reply was modified 4 years, 9 months ago by Anjali.
-
Anjali
MemberFebruary 4, 2020 at 2:23 pm in reply to: What are the different ways to Import Data in Salesforce?Several tools to import data-
- Data import wizard
- Object-specific import wizards
- Apex data loader
-
- Lookup relationship
- Master-detail relationship
- Many to many relationship
- Hierarchical relationship
- Self relationship
Salesforce connect the objects according to the relationship they posses.