Forum Replies Created

Page 23 of 24
  • Deepak

    Member
    February 10, 2020 at 6:07 am in reply to: How do you implement lazy loading in lightning component in Salesforce?

    Hi Ratnesh,

    Best ways to implement lazy loading are as follows:

    1.Dynamically create component when parent component's initialisation is completed.

    2.Create/query data when a particular event triggers.

    3.Use AfterRender - This one is quite interesting, and can also achieve the required outcome. However if I have to trigger an event as part of this initialisation, Salesforce discourages to do that, as it results in a chain reaction.
    4.By adding a timer in controller function to delay component data loading
    Hope it helps!

  • Deepak

    Member
    February 7, 2020 at 1:27 pm in reply to: What are the benefits of Lightning web components in Salesforce?

    Hi Shweta,

    1.Enhanced Performance – Lightning web components will run on the browser without any complex abstractions thus providing better performance to end users.

    2.Ease of Use – Once developed, the admins can deploy Lightning Web Components with clicks to the applications.

    Hope it helps!

  • Deepak

    Member
    February 7, 2020 at 1:25 pm in reply to: What is the Account hierarchy in Salesforce?

    Hi Krati,

    Salesforce account hierarchy allow accounts to be related in a hierarchy by using a 'parent account' field to link them together.

    Once linked, the complete hierarchy structure can be viewed and links are provided to navigate directly to the accounts.

    Hope it helps!

  • Deepak

    Member
    February 7, 2020 at 1:18 pm in reply to: How do I create a quick action in salesforce ?

    Hi Ayush,

    Follow the steps to Create a Quick Action :

    1. Click and select Setup.
    2. Enter Global Actions in the Quick Find and select Global Actions.
    3. Click New Action.
    4. Leave the Action Type as Create a Record. ...
    5. In the Label field, enter Way point .Click Save.
    6. In the next Action Layout screen, leave Way point Name as the only field in the layout.

    Hope it helps!

  • Deepak

    Member
    February 6, 2020 at 2:41 pm in reply to: What is lightning data service in Salesforce?

    Hi Shweta,

    Lightning Data Service is a centralized data caching framework which is used to load, save, create and delete a record without server-side apex code. Well,it supports the sharing rules and field-level security as well.

  • Hi Marziya!

    Object Relationships in Salesforce:

    A relationship is a two way association between two objects.

    Relationships allow us to create links between one object and another. Salesforce platform supports following relationship types

    1. Master-Detail relationship
    2. Lookup relationship
    3. Many-to-Many relationship

    Master-Detail (1:n)

    A parent-child relationship in which the master object controls certain behaviours of the detail object.

    When a record of the master object is deleted, its related detail records are also deleted.
    The Owner field on the detail object is not available and is automatically set to the owner of its associated master record. Custom objects on the detail side of a master-detail relationship cannot have sharing rules, manual sharing, or queues, as these require the Owner field.
    The detail record inherits the sharing and security settings of its master record.
    The master-detail relationship field is required on the page layout of the detail record.
    By default, records can’t be re-parented in master-detail relationships. Administrators can, however, allow child records in master-detail relationships on custom objects to be re-parented to different parent records by selecting the Allow re-parenting option in the master-detail relationship definition.

    Lookup Relationship (1:n)

    1. Child row not automatically deleted when a parent row is deleted
    2. No inherited sharing.
    3. 25 lookup relation relationships allowed per object.
    4. Lookup field on child not necessarily required.

    Many-to-Many(n:n)

    We can use master-detail relationships to model many-to-many relationships between any two objects. A many-to-many relationship allows each record of one object to be linked to multiple records from another object and vice versa.

    To create a many-to-many relationship, simply create a custom junction object with two master-detail relationship fields, each linking to the objects you want to relate.

     

  • Hi Marziya,

    In both cases records doesn't exist anymore whenever master is deleted it's existing child record automatically deleted.

    Hope it helps!

  • Deepak

    Member
    February 5, 2020 at 7:05 am in reply to: What are audit fields in Salesforce?

    Hi Udit,

    Audit Fields are special fields that track information about your records that can be valuable for audit purposes. Typically these fields include: CreatedByID. CreatedDate.

  • Deepak

    Member
    February 5, 2020 at 6:58 am in reply to: When workflows rules get evaluated in Salesforce?

    Hi Udit,

    Workflows rules get evaluated in Salesforce under two conditions:

    a.When record is created.

    b.When record is created & edited.

  • Deepak

    Member
    February 4, 2020 at 6:57 am in reply to: what type of datatypes is returned in formula fields in Salesforce?

    Hi Manish,

    Check out the following types of data returned in Salesforce as follows:

    1. Checkbox
      Calculate a boolean value
      Example:TODAY() > CloseDate
    2. Currency
      Calculate a dollar or other currency amount and automatically format the field as a currency amount.
      Example:Gross Margin = Amount - Cost__c
    3. Date
      Calculate a date, for example, by adding or subtracting days to other dates.
      Example:Reminder Date = CloseDate - 7
    4. Date/Time
      Calculate a date/time, for example, by adding a number of hours or days to another date/time.
      Example:Next = NOW() + 1
    5. Number
      Calculate a numeric value.
      Example:Fahrenheit = 1.8 * Celsius__c + 32
    6. Percent
      Calculate a percent and automatically add the percent sign to the number.
      Example:Discount = (Amount - Discounted_Amount__c) / Amount
    7. Text
      Create a text string, for example, by concatenating other text fields.
      Example:Full Name = LastName & ", " & FirstName
    8. Time
      Calculate a time, for example, by adding a number of hours to another time.
      Example:Next = TIMEVALUE(NOW()) + 1
    • This reply was modified 4 years, 9 months ago by  Deepak.
  • Deepak

    Member
    February 4, 2020 at 6:45 am in reply to: What can we use to delete components from production in Salesforce?

    Hi Udit,

    We can use Ant Migration Tool(One way of deleting) to delete components from production in Salesforce.

    If you want to install the above tool you can follow the steps mentioned in following developer guide:

    https://developer.salesforce.com/docs/atlas.en-us.daas.meta/daas/forcemigrationtool_install.htm

    Hope it helps!

  • Deepak

    Member
    February 4, 2020 at 6:34 am in reply to: What are Entitlement rules in Salesforce ?

    Hi Kirandeep,

    Entitlement processes are timelines that include all the steps (or milestones) that your support team must complete to resolve support records like cases or work orders.

    Each process includes the logic necessary to determine how to enforce the correct service level for your customers.

    Hope it helps!

  • Deepak

    Member
    February 3, 2020 at 10:36 am in reply to: What is the correct syntax to use <lightning:card> in Salesforce?

    Hi Krati,

    If you want to give an attribute name then you have to use aura component. This facility is not provided in Lightning Card, hence throwing an error.

    <aura:component><lightning:card footer="Card Footer" title="Hello"><aura:set attribute="actions"><lightning:button label="New"/></aura:set><p class="slds-p-horizontal_small">Card Body (custom component)</p></lightning:card></aura:component>

     

    This syntax shows what can we do with the lightning card.

    Hope this helps!

    • This reply was modified 4 years, 9 months ago by  Deepak.
    • This reply was modified 4 years, 9 months ago by  Forcetalks.
  • Deepak

    Member
    February 3, 2020 at 10:27 am in reply to: What is the use of tag in Salesforce Lightning Component?

    Hi Arun,

    When a component wants to handle its own event in its markup then we use this tag i.e. <aura:handler/>.

    For e.g. A parent component can set a handler action when it initiates a child component in its markup.

    • This reply was modified 4 years, 9 months ago by  Deepak.
    • This reply was modified 4 years, 9 months ago by  Forcetalks.
  • Deepak

    Member
    February 3, 2020 at 10:18 am in reply to: How many types of Events available in Salesforce Lightning?

    Hi Arun,

    There are two types of events :

    Component events are handled by the component itself or a component that initiates or contains the component.

    Application events are handled by all components that are listening to the event.

    • This reply was modified 4 years, 9 months ago by  Forcetalks.
  • Deepak

    Member
    January 31, 2020 at 7:29 am in reply to: What is the use of the <aura:method>in Salesforce Lightning?

    Hi Krati,

    Use of <aura:method> in lightning is to define a method as part of a component's API.

    It enables you to directly call a method in a component’s client-side controller instead of firing and handling a component event.

    Using aura:method simplifies the code needed for a parent component to call a method on a child component that it contains.

    Example of aura:method

    In this example, we are creating a Child component aura method with two parameters. These two parameters are ‘FirstchildGreetingParam’ and ‘SecondchildGreetingParam’. These parameters are having a default value of ‘Hello’ and ‘World’ respectively.

    <aura:component>
    <aura:method name="childMessageMethod" action="{!c.getMessage}" access="public">
    <aura:attribute name="FirstchildGreetingParam" type="String" default="Hello"/>
    <aura:attribute name="SecondchildGreetingParam" type="String" default="World"/>
    </aura:method>

    • This reply was modified 4 years, 9 months ago by  Forcetalks.
  • Hi Kirandeep,

    With MyDomain you can create your own subdomain for your Salesforce org to manage login and authentication.

    With a subdomain, you can include your company name in your URL, for example, https://yourcompanyname.my.salesforce.com.

    You can also customize your login page, such as add your logo, change the color scheme, or add your own content on the right side of the login page.

    I hope it helps!

    • This reply was modified 4 years, 9 months ago by  Forcetalks.
  • Deepak

    Member
    January 31, 2020 at 7:07 am in reply to: What is Salesforce Lightning Locker?

    Hi Kiranadeep,

    Lightning Locker is a powerful security architecture for Lightning components i.e.

    Lightning Locker also promotes best practices that improve the supportability of your code by only allowing access to supported APIs and eliminating access to non-published framework internals.

    I hope it helps!

    • This reply was modified 4 years, 9 months ago by  Forcetalks.
  • Deepak

    Member
    January 30, 2020 at 12:26 pm in reply to: What are the benefits of subDomain in Salesforce?

    Hi Aditya,

    With a My Domain subdomain, you can:

    Highlight your business identity with your unique domain URL
    Brand your login page and customize content on the right side of the page
    Block or redirect page requests that don’t use the new domain name
    Work in multiple Salesforce orgs at the same time
    Set custom login policy to determine how users are authenticated
    Let users log in using a social account, like Google and Facebook, from the login page
    Allow users to log in once to access external services

    Hope it helps!

  • Deepak

    Member
    January 30, 2020 at 12:23 pm in reply to: Why it is necessary to enable MyDomain in Salesforce Lightning?

    Hi Udit,

    If you don't enable MyDomain in Salesforce Lightning,then how will you differentiate between your code and the code from the managed package or components that are running in your org.

    Your Lightning Components can't share the same memory space as Lightning Components from a vendor. By having My Domain enabled, they can more readily keep them separate.

    Hope it helps!

  • Hi Manish,

    Controller.js — The component’s controller, or we can say main JavaScript file.

    Helper.js — The component’s helper, or we can say secondary JavaScript file.

    Hope it helps!

  • Hi Krati,

    1. Visualforce components are page-centred while Lightning Components are client-side centred.
    2. In VisualForce,JavaScript buttons and links are supported while Lightning Components  don't support.
  • Deepak

    Member
    January 29, 2020 at 1:33 pm in reply to: What is meant by Time trigger in Salesforce?

    Hi Anjali,

    a.Basically , a Time trigger uses standard and custom date and date/time fields defined for the object.

    b.Specify time using days and hours.

    c.The valid range is 0 to 999 days or hours.

    But there are some limitations using time trigger as mentioned below:

    1.Time triggers don’t support minutes or seconds.
    2.Time triggers can’t reference the following:DATE or DATETIME fields containing automatically derived functions, such as TODAY or NOW.

  • Deepak

    Member
    January 29, 2020 at 1:23 pm in reply to: Why do we use doInit function in the Salesforce Controller Class?

    Hi Manish,

    We use doInit function in controller class when the component calls i.e. it is initialized.

    Hope it helps!

  • Deepak

    Member
    January 28, 2020 at 12:30 pm in reply to: What is exception reporting in Salesforce?

    Hi Krati,

    Exception Reports are used to display where data does not exist and are built by using Cross Filters.

    For example, you can create reports that inform you of customers whose contracts are nearing expiration and who need to be touched for renewal.   You can trigger a report to inform you when inventory drops below a set amount, or when a support case takes longer than a specific period of time to reach resolution.  These are only a few of many exception reports that can be created for business process tracking.  Think about the parameters you can set on your business processes and how you might create some key exception reports to better manage those processes.

Page 23 of 24