Forum Replies Created

Page 19 of 21
  • Avnish Yadav

    Member
    July 30, 2018 at 1:36 pm in reply to: What are the static resources in Salesforce?

    Hello Chanchal,

    Static resources allow you to upload content that you can reference in a Visualforce page, including archives (such as .zip and .jar files), images, style sheets, JavaScript, and other files. A single static resource can be up to 5 MB in size. An organization can have up to 250 MB of static resources. Static resources apply to your organization’s quota of data storage.

    Thanks.

  • Avnish Yadav

    Member
    July 30, 2018 at 1:34 pm in reply to: Is it possible to create trigger on views in Salesforce?

    Hello Chanchal,

    Apex triggers enable you to perform custom actions before or after events to records in Salesforce, such as insertions, updates, or deletions in database. Therefore, it is not possible to create trigger on views in salesforce.

    Thanks.

  • Hi Prachi,

    There are 5 major components for HTTP Request.
    Verb − Indicate HTTP methods such as GET, POST, DELETE, PUT etc.
    URI − Uniform Resource Identifier (URI) to identify the resource on server.
    HTTP Version − Indicate HTTP version, for example HTTP v1.1 .
    Request Header − Contains metadata for the HTTP Request message as key-value pairs. For example, client ( or browser) type, format supported by client, format of message body, cache settings etc.
    Request Body − Message content or Resource representation

    Thanks.

  • Avnish Yadav

    Member
    July 30, 2018 at 6:14 am in reply to: What is field tracking in Salesforce?

    Hello Madhulika,

    Field Tracking- We can select certain fields to track and display the field history in the History related list of an object. The field history data is retained for up to 18 months. Field history tracking can be done for both standards as well as custom objects.

    Thanks.

  • Hello Shradha,

    Using isPersonAccount property on an Account and catch any exception that occurs if that property is missing. If an exception is generated then person accounts are disabled. Otherwise they're enabled. To avoid making person accounts required for the package you assign the Account object to an sObject and use sObject.get( 'isPersonAccount' ) rather than accessing that property directly on the Account object.

    Thanks.

  • Hello Madhulika,

    Yes, it is possible but you would need to create lightning:recordEditForm objects (or, just place them in an aura:iteration). Each lightning:recordEditForm creates only one record, so you'd have to submit them all separately.

    Thanks.

  • Avnish Yadav

    Member
    July 30, 2018 at 4:27 am in reply to: Why do we need Salesforce Visualforce component?

    Hello Anurag,

    We use a Visualforce component because of reusability of that component.

    Example: The header, the footer of the website can be used on many pages.

    Thanks.

  • Hello Chanchal,

    Standard controllers can often provide all of the functionality and data that you need for your Visualforce page.

    However, you may need to start coding your own controller code if you want then its Custom controller

    1. Override existing functionality
    2. Make new actions available to the page
    3. Customize the navigation
    4. Use HTTP callouts or web services
    5. Have greater control of how information is accessed on the page

    Controller Extension

    If you want to keep most of the functionality of a standard or custom controller it is wiser to have an extension

    controller extension can extend standard or custom controller.

    Thanks.

  • Hello Chanchal,

    If you are asking the order of execution of setter and getter values then Setter is fired first, a then getter fires.

    A setter is called before the action methods, the action method executes will be accessing the variable that was set.

    Thanks.

  • Avnish Yadav

    Member
    July 26, 2018 at 11:52 am in reply to: What is the use of force:hasRecordId interface in Salesforce?

    Hello Madhulika,

    The force:hasRecordId interface does two things to a component that implements it. It adds an attribute named recordId to your component. This attribute is of type String, and its value is an 18-character Salesforce record ID, for example: 001xx000003DGSWAA4. If you added it yourself, the attribute definition would look like the following markup: <aura:attribute name="recordId" type="String" />

    Note: If your component implements force:hasRecordId, you don’t need to add a recordId attribute to the component yourself. If you do add it, don’t change the access level or type of the attribute or the component will cause a runtime error.

    Thanks.

  • Avnish Yadav

    Member
    July 26, 2018 at 5:22 am in reply to: What is the use of DataLoader in Salesforce?

    Hello Anurag,

    Data Loader is a client application for the bulk import or export of data. Use it to insert, update, delete, or export Salesforce records

    Uses:-

    1. You need to load 50,000 to 5,000,000 records. Data Loader is supported for loads of up to 5 million records.
    2. You need to load into an object that is not yet supported by the import wizards.
    3. You want to schedule regular data loads, such as nightly imports.
    4. You want to export your data for backup purposes.

    Thanks.

  • Hello Chanchal,

    When running data loader from the command line you are running an app that is using the Salesforce API to write data to Salesforce.

    If you want email notification on failures, the way to do that would then be through the app, or by way of the process that invokes the app (the batch or shell script that invokes the cli).

    At a high level you would want your script to do the following:

    1. Invoke the data loader CLI
    2. Once the result is returned, read the error file
    3. If there are errors, send an email

    Thanks.

  • Avnish Yadav

    Member
    July 25, 2018 at 1:37 pm in reply to: What is the use of Lightning card in Lightning Component?

    Hello Anurag,

    lightning:cardthey are used to apply a container around a related grouping of information. lightning:card is the component container.

    Thanks.

  • Hello,

    Well, in my opinion, there is no drawback of data Loader CLI except that it can load a maximum of 50 million records. And we use Data Loader CLI, to make task automated and scheduled.

    Thanks.

  • Avnish Yadav

    Member
    July 25, 2018 at 1:19 pm in reply to: What are the advantages of using CLI in Salesforce?

    Hello,

    CLI provides a simple wizard to create directory structures and configuration files for the Salesforce Data Loader Command Line Interface. You can spend hours configuring the CLI manually, or use CLI and you will have a working configuration in less than 5 minutes. And then use that configuration to load data.

    Thanks.

     

  • Hello Chanchal,

    You can add Lightning Component to your Visualforce Page. There are three steps to add Lightning components to a Visualforce page.
    Step 1:- Add the Lightning Components for Visualforce JavaScript library to your Visualforce page using <apex:includeLightning/> component.
    Step 2:- Create and reference a Lightning app that declares your component dependencies.
    Step 3:- Write a JavaScript function that creates the component on the page using $Lightning.createComponent().

    Thanks

     

  • Hello Chanchal,

    If we compare both of them then we say, Visualforce components are page-centric and most of the work is done on the server. Lightning is designed from the component up, rather than having the concept of a page as its fundamental unit. Lightning Components are client-side centric, which makes them more dynamic and mobile friendly. But we can't say that lightning component is replacing the visualforce page.

    Thanks.

  • Hello Chanchal,

    The Lightning Component framework is a UI framework for developing dynamic web apps for mobile and desktop devices. It’s a modern framework for building single-page applications engineered for growth. Therefore it will not only intended for mobile apps.

    Thanks.

  • Avnish Yadav

    Member
    July 23, 2018 at 6:11 am in reply to: How is Map faster than Loop ?

    Hello Anurag,

    According to the theory, if we had a compiler/interpreter that was smart enough to make use of multiple cpus/processors, then map could be implemented faster as the different operations on each item could be done in parallel.

    Thanks.

  • Avnish Yadav

    Member
    July 20, 2018 at 1:12 pm in reply to: How do you perform unit test on a Salesforce trigger?

    Hi Prachi,

    By using the description methods in salesforce you should be able to determine what the required fields are dynamically. But in my suggestion, you must check the required field before implementing the unit test on a particular Object.

    Thanks.

  • Hello Chanchal,

    If we make any trigger on the roll-up summary, then the Trigger will fire because the Parent record goes through save procedure meaning the trigger will fire on parent record if there is a modification on the field of the child record that feeds to the parent as the roll-up summary.

    Thanks.

  • Hello Chanchal,

    Roll up summary field can only be defined on the master object, i.e master in the master-detail relationship, while your formula fields calculate values using fields within a single record. And roll-up summary fields calculate values from a set of related records, such as those in a related list, like contacts in Account.

    Thanks.

  • Avnish Yadav

    Member
    July 20, 2018 at 12:53 pm in reply to: How to get all the required fields of sObject dynamically?

    Hi Prachi,

    Well, Dynamic Apex API does not provide any direct property that will access required field but if any field is required they must have these three properties:-

    a. It is creatable

    b. It is not nillable.

    3. It doesn't have a default value.

    Example:-

    Map<String, Schema.SObjectType> m = Schema.getGlobalDescribe();
    Schema.SObjectType s = m.get('objectname');
    Schema.DescribeSObjectResult r = s.getDescribe();
    Map<String,Schema.SObjectField> fields = r.fields.getMap();

    for(String field : fields.keyset()) {
    Schema.DescribeFieldResult describeResult = fields.get(field).getDescribe();
    if (describeResult.isCreateable() && !describeResult.isNillable() && !describeResult.isDefaultedOnCreate()) {
    System.debug(field);
    }
    }

    Hope this will help.

    Thanks.

  • Hello Chanchal,

    It is possible but you have to clone the process builder first then once you have cloned it, you will be able to edit it. Just select 'Version of the current process', when you do 'Save Clone as..'

    Hope this will help you.

    Thanks.

  • Hello Chanchal,

    -The changeset is useful when you need to migrate the metadata between related organizations. In changeset, you need       Deployment connection between the orgs. While in the packages, you can deploy the metadata across the organizations.You don't need access/ deployment connections with the other org.

    Thanks.

Page 19 of 21