Forum Replies Created

Page 9 of 12
  • Nikita

    Member
    August 30, 2019 at 12:56 pm in reply to: What is big object in Salesforce?

    Hi Deepak,

    A big object stores and manages massive amounts of data on the Salesforce platform. You can archive data from other objects or bring massive datasets from outside systems into a big object to get a full view of your customers. Clients and external systems use a standard set of APIs to access big object data. A big object provides consistent performance, whether you have 1 million records, 100 million, or even 1 billion. This scale gives a big object its power and defines its features.

  • Hi Laveena,

    A CRON expression is basically a string of five or six fields separated by white spaces that represents a set of times, normally as a schedule to execute some routine.

    The syntax for CORN Expression in Salesforce Schedule Job Is as following

    Seconds Minutes Hours Day_of_month Month Day_of_week Optional_year

    Thanks

  • Nikita

    Member
    August 30, 2019 at 10:21 am in reply to: How can I hide header and sidebar in visualforce page in Salesforce?

    Hi Achintya,

    you can use syntax as:

    <apex:page  sidebar="false" showHeader="false">

    Thanks

  • Nikita

    Member
    August 30, 2019 at 10:15 am in reply to: Explain various bindings supported by visualforce in Salesforce?

    Hi Laveena,

    there are three types of bindings used in Visualforce

    Data binding: Data bindings refer to the data set in the controller.
    Action bindings: Action bindings refer to action methods in the controller.
    Component bindings: Component bindings refer to other Visualforce components.

  • Hi Deepak,

    Yes, you can include external javaScript/CSS libraries in salesforce lightning components.

  • Hi Deepak,

    In a lightning component, the client-side is a component page and the javascript controller and the server-side is the apex controller and the databases.

  • Nikita

    Member
    August 29, 2019 at 11:40 am in reply to: What is the use of rowcause in the Apex Managed Sharing in Salesforce?

    Hi Achintya,

    It is basically a reason.

    The reason why the user or group is being granted access. The reason determines the type of sharing, which controls who can alter the sharing record.

    Note: This field cannot be updated.

  • Nikita

    Member
    August 29, 2019 at 10:27 am in reply to: How can we avoid recursive trigger execution in Salesforce?

    Hi Achintya,

    To avoid the recursion on a trigger, make sure your trigger is getting executed only one time. You may encounter the error : 'Maximum trigger depth exceeded', if recursion is not handled well.

  • Hi Saddam,

    If you want to run a piece of apex code at a particular time or at particular intervals of time, use Apex Scheduler. Apex scheduler is a class which runs at a regular interval of times.

    Yes, you can callout from Scheduler apex using future method.

  • Nikita

    Member
    August 29, 2019 at 8:10 am in reply to: Can I callout from the trigger in Salesforce?

    Hi Saddam,

    Yes, you can do callout from trigger but have to use future method.

  • Nikita

    Member
    August 28, 2019 at 12:55 pm in reply to: Why does NULL count as 4 characters in Salesforce Apex?

    Hi Yogesh,

    In Apex Code, null actually doesn't count as any bytes (per se). However, when you add null to a string, it's typed coerced into a string four-characters long-- "null". This behavior seems to be rather specific to Apex Code. In other languages that allow null bytes in a string, null should actually be one byte long.

  • Nikita

    Member
    August 28, 2019 at 6:55 am in reply to: What are the ways to call the Apex class in Salesforce?

    Hi Saddam,

    We can call apex class

    • From another class
    • From Trigger
    • From Visualforce Page
    • From Developer console
    • Form JavaScript button, Links
    • From Home page components
    • From apex scheduler
  • Nikita

    Member
    August 28, 2019 at 6:52 am in reply to: Explain briefly about GROUP BY with the syntax in Salesforce?

    Hi Saddam,

    You can use the GROUP BY option in a SOQL query to avoid iterating through individual query results. That is, you specify a group of records instead of processing many individual records.
    You can use GROUP BY with aggregate functions, such as SUM() or MAX(), to summarize the data and enable you to roll up query results rather than having to process the individual records in your code.

    The following query returns the distinct set of values stored in the LeadSource field.

    SELECT LeadSource
    FROM Lead
    GROUP BY LeadSource

  • Nikita

    Member
    August 28, 2019 at 5:47 am in reply to: How to use a lightning component in a visualforce page in salesorce ?

    Hi Hariom,

    There are three steps to add Aura components to a Visualforce page.

    • Add the Lightning Components for Visualforce JavaScript library to your Visualforce page using the <apex:includeLightning/> component.
    • Create and reference a Lightning app that declares your component dependencies.
    • Write a JavaScript function that creates the component on the page using $Lightning.createComponent().
  • Hi Prachi,

    difference between “apex:dataTable” and “apex:pageBlockTable” is as following

    PageBlockTable:

    • PageBlockTable should be defined inside pageblock or pageblocksection.
    • PageBlockTable uses standard styles sheets to design a visual page.
    • It has the required attribute "value".
    • Column headers will be displayed automatically.

    DataTable:

    • No need to write inside page block or pageblocksection.
    • There is no required value.
    • The data can be displayed using custom style sheets.
    • we need to specify column headers explicitly.
  • Nikita

    Member
    August 27, 2019 at 12:32 pm in reply to: How to get total number of Child records in Lookup relationship?

    Hi Prachi,

    You need to write Either Trigger on child object to count the number of child record in lookup Relationship Or You can also Inline Editing.

  • Hi Achintya,

    Using a standard list controller is very similar to using a standard controller. First, you set the standardController attribute on the <apex:page> component, then you set the recordSetVar attribute on the same component.

    For example, to associate a page with the standard list controller for accounts, use the following markup:<apex:page standardController="Account" recordSetVar="accounts">

  • Hi Yogesh,

    $A.enqueueAction(action) adds the server-side controller action to the queue of actions to be executed. All actions that are enqueued will run at the end of the event loop. Rather than sending a separate request for each individual action, the framework processes the event chain and batches the actions in the queue into one request. The actions are asynchronous and have callbacks.

  • Hi Saddam,

    The page layout editor lets you: Control which fields, lists of related records, and custom links users see

    • Customize the order that the fields appear in the page details
    • Determine whether fields are visible, read-only, or required
    • Control which standard and custom buttons appear on records and related lists
    • Control which quick actions appear on the page
  • Nikita

    Member
    August 27, 2019 at 9:29 am in reply to: If we want to share records based on condition in Salesforce?

    Hi Saddam,

    Goto Setup → Security Controls → sharing settings → Click on ‘Edit’

    Apex sharing: Share object is available for every object(For Account object share object is AccountShare ). If we want to share the records using apex we have to create a record to the share object.

  • Nikita

    Member
    August 27, 2019 at 9:22 am in reply to: What is S-Control in Salesforce?

    Hi Saddam,

    S-control is used to add your own functionality to your Salesforce organization. Whether you are integrating a hosted application of your own or are extending your current Salesforce user interface, use s-controls to store your code or refer to code elsewhere.

    Custom s-controls can contain any type of content that you can display in a browser, for example, a Java applet, an Active-X control, an Excel file, or a custom HTML Web form.

  • Hi Laveena,

    To get a record Id you need to implement the force:hasRecordId interface.

    Once you have done this you can access the record id by:

    {!v.recordId}

    • This reply was modified 5 years, 3 months ago by  Nikita.
  • Nikita

    Member
    August 26, 2019 at 1:15 pm in reply to: Why we use Batch Apex instead of Normal Apex in salesforce?

    Hi Laveena,

    A Batch class allows you to define a single job that can be broken up into manageable chunks that will be processed separately.Batch Jobs are invoked programmatically during the runtime and can be operated on any size of records, with a maximum of 200 records per batch. You can break down a larger record data into 200 records per batch to execute it better.

  • Nikita

    Member
    August 26, 2019 at 1:08 pm in reply to: List out different methods of Dynamic PickList class in Salesforce?

    Hi Laveena,

    The following are methods for DynamicPickList.

    clone()
    Makes a duplicate copy of the VisualEditor.DynamicPicklist object.
    getDefaultValue()
    Returns the picklist item that is set as the default value for the picklist.
    getLabel(attributeValue)
    Returns the user-facing label for a specified picklist value.
    getValues()
    Returns the list of picklist item values.
    isValid(attributeValue)
    Returns the valid state of the picklist item’s value. A picklist value is considered valid if it’s a part of any VisualEditor.DataRow in the VisualEditor.DynamicPickListRows returned by getValues().

    Thanks,

Page 9 of 12