Deepak
IndividualForum Replies Created
-
Hi Shubham,
A share object includes records supporting all three types of sharing:
- Force.com managed sharing
- User managed sharing
- Apex managed sharing.
A custom object's share object allows four pieces of information to be defined:
- The record being shared.
- The User or Group with whom the object is being shared.
- The permission level being granted to the User or Group.
- The reason why the User or Group has been granted sharing access.
- This reply was modified 4 years, 10 months ago by Forcetalks.
-
Hi Aditya,
Utility classes are just like helper classes that consist of reusable(when required many times ) methods.
From triggers, we can call methods in public classes. This helps to reduce code in the trigger and make it more organized.
If we have a trigger on the opportunity which does date format and assign it to a field value, it can be written as follows with the help of utility classtrigger updateOpp on Opportunity (before insert){ for(Opportunity opp : Trigger.new){ opp.formattedDate__c = TriggerHelper.formatDate(opp.someDate__c); } } //Utility Class Public Class TriggerHelper{ Public Static string formatDate(Date inputDate){ return inputDate.format(); } }
- This reply was modified 4 years, 10 months ago by Deepak.
- This reply was modified 4 years, 10 months ago by Forcetalks.
-
Deepak
MemberFebruary 19, 2020 at 2:57 pm in reply to: How can we deploy Sales Tracking in Salesforce?Hi Pooja,
- Set source organization. The first thing you need to do is pick which org I've built my Sales Path in.
- Set target organization. Now you pick your target org.
- Customize your comparison.
- Kick off the comparison.
- Select changes to deploy.
- Validate or deploy.
-
Deepak
MemberFebruary 19, 2020 at 2:52 pm in reply to: What are the types of Workflow in Salesforce?Hi Pooja,
Two types of Workflow available:
1. Immediate Workflow rule
Workflow rule fires immediately when the workflow criteria is met, and the associated actions (email alert/field update etc.,) will take place .
2. Time Dependent Workflow rule
When the workflow entry criteria is met, associated actions (email alert/field update etc.,) will take place after a certain period of time. This time is based on the value that you set.
-
Deepak
MemberFebruary 19, 2020 at 2:41 pm in reply to: What is the use of a Junction Object in Salesforce?Hi Pooja,
Junction objects are used for creating many-to-many relationships in Salesforce. Salesforce by default supports one-to-many relationships. These are the Master-Detail, the Lookup and the External Lookup relationships. They are defined from the many-to one side, meaning from a child to a parent.
Hope it helps!
- This reply was modified 4 years, 10 months ago by Forcetalks.
-
Deepak
MemberFebruary 18, 2020 at 3:05 pm in reply to: Can you clone an Opportunity object in Salesforce?Hi Ratnesh,
To clone an opportunity with related records,
you must have Create permissions on the opportunity and all of its related records.
If you clone an opportunity with fields on which you have only Read access, those fields' values aren't included in the new opportunity.
-
Hi Ratnesh,
To Clone a Dashboard:
- Navigate to an existing Dashboard.
- Click Clone (button)
- Click Save As.
- Give the new Dashboard a new Name.
- Edit your Components as needed.
-
Hi Kirandeep,
One of the use as of I know is merge statement is used in order to remove duplicate records from your database.
-
Hi Ratnesh,
CDC stands for Change Data Capture which is a streaming product on the Lightning Platform that enables you to efficiently integrate your Salesforce data with external systems. With Change Data Capture, you can receive changes of Salesforce records in real time and synchronize corresponding records in an external data store.
Want to learn more checkout trailhead!
-
Hi Ayush,
Add the force:appHostable interface to a Lightning component to allow it to be used as a custom tab in Lightning Experience or the Salesforce mobile app. Components that implement this interface can be used to create tabs in both Lightning Experience and the Salesforce mobile app. This interface is a marker interface.
-
Deepak
MemberFebruary 17, 2020 at 9:21 am in reply to: What is .setScale() method in Salesforce Apex?Hi Aditya,
setScale(scale) - Returns the Decimal scaled to the specified number of decimal places, using half-even rounding, if necessary. Half-even rounding mode rounds toward the “nearest neighbor.” If both neighbors are equidistant, the number is rounded toward the even neighbor.
I hope it helps!
- This reply was modified 4 years, 10 months ago by Forcetalks.
-
Deepak
MemberFebruary 14, 2020 at 1:44 pm in reply to: What is the return type of Future method in Salesforce?HI Shweta,
Future methods must be static methods, so we can only return a void type.
Hope it helps!
-
Deepak
MemberFebruary 14, 2020 at 1:42 pm in reply to: How can we call a web service from batch class in Salesforce ?Hi Kirandeep,
We can call a web service from batch class in Salesforce by implementing the below syntax:
global class BatchClassName implements Database.Batchable<sObject>,Database.AllowsCallouts{
}
Hope it helps!
-
Deepak
MemberFebruary 14, 2020 at 1:38 pm in reply to: Differentiate between Setup and Non setup Objects in Salesforce ?Hi Kirandeep,
A setup object is an object that must be edited from the setup or builder area of the platform.
While Non-Setup objects can be all other general objects i.e. Salesforce don't allow you to run.
Hope it helps!
-
Deepak
MemberFebruary 13, 2020 at 6:58 am in reply to: What is the limit on the number of components which can be included in one Application in Salesforce?Hi Marziya,
The limit on the number of components which can be included in one Application in Salesforce i.e. per app/cmp is 10,000 inner component limit.
This number is chosen and enforced by the framework.
-
Deepak
MemberFebruary 13, 2020 at 6:55 am in reply to: What is the use of <lightning:breadcrumbs> in Salesforce ?Hi Kirandeep,
<lightning:breadcrumbs> is a simple navigation scheme which is used to display the path and navigate back to parent page.
-
Hi Shubham,
Chaining callouts means that the next callout is made only after the response of the previous callout returns.
If the order of the callouts matters, or when a callout is conditional on the response of another callout, you can chain callout requests.
Hope it works!
-
Hi Anjali,
Salesforce Lightning Events are broadly classified into four:
1.System Events
2.Lightning Application Events from library
3.Application Events
4.Component EventsSYSTEM EVENTS
System events are fired automatically by lightning framework and during component initialization, rendering or attribute value change etc.LIGHTNING APPLICATION EVENTS FROM LIBRARY
These events are provided by Salesforce Library that can be often used based on your requirement. However, some of these library events might not be supported in Salesforce app and Lightning Experience or a standalone app all at the same time. So it is recommended to instantiate the event using $A.get() to determine from where your component is running i.e Salesforce app and Lightning Experience or a standalone app.
APPLICATION EVENTS
Application Events helps in passing values between two independent events (without parent child relationship). It behaves just like a broadcast message wherein any device that has the receiver turned on can receive the broadcast message sent from a single device.
COMPONENT EVENTS
Component Events are required in order to pass values from child component to parent. Parent component (receiver) will be handling the event fired by the child components (sender).
Hope it helps!
-
Deepak
MemberFebruary 12, 2020 at 3:17 pm in reply to: What happens If you exceed your API call Limits in Salesforce?Hi Shweta,
Whenever an organization exceeds a limit, all users in the organization may be temporarily blocked from making additional calls. & also Calls will be blocked until usage for the preceding 24 hours drops below the limit.
Hope it helps!
-
Deepak
MemberFebruary 12, 2020 at 3:15 pm in reply to: What is the characteristics of API calls in Salesforce?Hi Shweta,
The characteristics of API calls in Salesforce are as follows:
Service Requests and Responses—Your client application prepares and submits a service request to the Lightning Platform Web Service via the API, the Lightning Platform Web Service processes the request and returns a response, and the client application handles the response.
Hope it will help!
-
Deepak
MemberFebruary 11, 2020 at 5:59 am in reply to: What is the role of aura:waiting and aura:doneWaiting in Lightning Component in Salesforce ?Hi Kirandeep,
aura:waiting : This event is automatically fired when a server side apex action is added using $A.
aura:doneWaiting : This event indicate that the lightning component is done waiting for server response.
This event is always fired after aura:waiting.
It is handled by a client-side (java Script) controller.
-
Deepak
MemberFebruary 11, 2020 at 5:56 am in reply to: Can a trigger have a static keyword in its code in Salesforce?Hi Mohit,
We can declare and use static variables in a trigger, but we cannot use static initializer blocks.
A static variable defined in a trigger doesn't retain its value between different trigger contexts within the same transaction, such as between before insert and after insert invocations.
Hope it helps!
-
Deepak
MemberFebruary 11, 2020 at 5:00 am in reply to: At which event Merge trigger are fired in Salesforce?Hi Mohit,
Merge triggers fire on certain conditions i.e. before and after delete for the losing records, and both before and after update triggers for the winning records
Hope it helps!
-
Hi Pooja,
An API specifies how software components should interact.
Additionally, APIs are used when programming graphical user interface (GUI) components.
Hope it helps!
-
Hi Ayush,
Just few steps & you will be able to Enable Chatter.
Step 1: Go to Setup > Customize > Chatter > Chatter Settings.
Step 2: Click on Edit button.
Step3: Click Enable checkbox, and change the settings according to your need
Step4:Save