Forum Replies Created

Page 13 of 21
  • Hello,

    Matrix report-  This is the most complex report format. Matrix report summarizes information in a grid format. Matrix reports allow records to be grouped by both columns and rows. So when you need to group by horizontal or vertical columns or both you can use a matrix report.

    Joined reports let you create multiple report blocks that provide different views of your data. Each block acts like a “sub-report,” with its own fields, columns, sorting, and filtering. A joined report can even contain data from different report types.

    Thanks.

  • Avnish Yadav

    Member
    September 12, 2018 at 9:13 am in reply to: Limit of aggregate query in salesforce.

    Hello,

    Queries that include aggregate functions are still subject to the limit on total number of query rows i.e 50,000. All aggregate functions other than COUNT() or COUNT(fieldnameinclude each row used by the aggregation as a query row for the purposes of limit tracking.

    For COUNT() or COUNT(fieldname) queries, limits are counted as one query row, unless the query contains a GROUP BY clause, in which case one query row per grouping is consumed.

    Thnaks.

  • Avnish Yadav

    Member
    September 11, 2018 at 10:53 am in reply to: My component is not working in Update

    Hey Raghav,

    I had implemented your code in my org and I found that an edited value is not capturing the component.get("v.lstAccount"), therefore I suggest you to use "event.getParam('draftValues')" of lightning datatable feature and send it to Apex class. This will help you.

    For more information read the documentation of Lightning:datatable.

    Thanks.

  • Avnish Yadav

    Member
    September 11, 2018 at 7:20 am in reply to: What is MIXED-DML-OPERATION error and how to avoid?

    Hello,

    Performing DML operation on more than two or two standard/custom object in the same transaction this error will come.

    To avoid this error, we should perform DML operation on standard/custom object records in a different transaction.

    Hope this will help you.

    Thanks.

  • Hello Prachi,

    Well, this type of error shown when your SOQL didn't return any results. You can wrap it in a try/catch statement to handle this gracefully.

    For more information, kindly share your code.

    Thanks.

     

  • Avnish Yadav

    Member
    September 11, 2018 at 7:03 am in reply to: Describe your understanding of RESTful web service?

    Hello,

    Just like SOAP (Simple Object Access Protocol), which is used to develop web services by XML method, RESTful web services use web protocol i.e. HTTP protocol method. They have the feature like scalability, maintainability, help multiple application communication built on various programming languages etc.

    RESTful web service implementation defines the method of accessing various resources which are required by the client and he has sent the request to the server through the web browser. The important aspects of this implementation include:

    • Resources
    • Request Headers
    • Request Body
    • Response Body
    • Status codes

    Thanks.

  • Avnish Yadav

    Member
    September 11, 2018 at 6:54 am in reply to: Name some of the API testing tools.

    Hello,

    Best API Testing tools:

    The different tools used for API testing are enlisted below:

    1. SOAPUI
    2. Runscope
    3. LOADUI
    4. Automated API testing
    5. Curl

    There are few more others than these listed above tools which are used for API testing.

    Hope this will help thanks.

  • Avnish Yadav

    Member
    September 10, 2018 at 2:43 pm in reply to: What is Apex Managed Sharing?

    Hello,

    Apex managed sharing is maintained across record owner changes. Basically, if you want to share a record programmatically we use Apex Managed Sharing. For example, AccountShare is the sharing object for the Account object, ContactShare is the sharing object for the Contact object, and so on.

    Thanks.

  • Avnish Yadav

    Member
    September 10, 2018 at 2:41 pm in reply to: What is a Time Trigger in Salesforce?

    Hello Anurag,

    Time-dependent actions are executed at a specific time, such as 10 days before a record’s close date. When that specific time passes, the workflow rule re-evaluates the record to make sure that it still meets the rule criteria. If the record does, the workflow rule executes those actions. This known as Time Trigger.

    Thanks.

  • Avnish Yadav

    Member
    September 10, 2018 at 2:06 pm in reply to: Embed Salesforce functionality on external websites

    Hey Venkata,

    Can you please explain more about your question like what are the pages and where you want to embed them and what are the difficulties you are facing?

    Thanks in advance!

  • Avnish Yadav

    Member
    September 10, 2018 at 1:59 pm in reply to: Salesforce Environment Hub

    Hello,

    Salesforce Environment Hub - It lets partners view, connect, create, and log in to multiple Salesforce organizations from one location. This can be especially convenient if you use a large number of organizations for business, development, and testing. Basically, if you have a large number of organizations then you can use Environment Hub.

    How is partner developer edition is different from developer edition -

    Developer Edition is for Initial Development or Prototyping which is free with no sandbox and storage size of 20mb. DE can have only 15000 API limits/ day while on another hand Partner Developer Edition is for Application development or Initial testing which is free for ISVs or Consulting Partners with no sandbox and storage size of 250mb. PDE can have 50,000 API limits/day.

    NOTE - We can Upgrade our Developer Edition into Partner Developer Edition by requesting PDE license from Salesforce.

    Hope This will help you.

    Thanks.

     

     

  • Avnish Yadav

    Member
    September 10, 2018 at 1:41 pm in reply to: When “Hard Delete” button will be enabled in apex data loader?

    Hello Anjali,

    When you have "Bulk API Enabled" in your Org, in you Data Loader Setting.

    Thanks.

  • Avnish Yadav

    Member
    September 10, 2018 at 1:38 pm in reply to: Uses of Custom Button and Link in Salesforce Lightning Component.

    Hello Anjali,

    Custom buttons and links help you integrate Salesforce data with external URLs, applications, your company’s intranet, or other back-end office systems.

    Uses - 

    1. Custom links can link to an external URL, such as www.google.com, a Visualforce page, or your company’s intranet.
    2. Custom links can also link to a custom s-control in the custom s-control library, such as a Java applet or Active-X control.
    3. Custom buttons can connect users to external applications, such as a web page that displays a map to a contact’s address.
    4. Custom Button can run an s-control from the s-control library, such as an s-control that escalates a case from the case detail page.

    Hope this will help you.

    Thanks.

  • Avnish Yadav

    Member
    September 10, 2018 at 1:24 pm in reply to: What is a flow of a code written in Salesforce Lightning Component?

    Hi Anurag,

    The flow of Lightning Component -

    Component Event:-
    1. Firstly you have to register an event in component A.
    <aura:registerEvent name=”EventE” type=”c:EventE“/>

    2. Fire the event by clicking any button, like onclick=”{!c.fireComponentEvent}”. Controller Code is here:-
    {
      fireComponentEvent : function(cmp, event) {
      // Get the component event by using the
      // name value from aura:registerEvent
      var cmpEvent = cmp.getEvent(“EventE”);
      cmpEvent.setParams({
         “message” : “A component event fired me. ” +
         “It all happened so fast. Now, I’m here!” });
          cmpEvent.fire();
       }
    }

    3. In Event E we have to pass data message so it look like this
    <aura:event type=”COMPONENT”>
    <aura:attribute name=”message” type=”String”/>
    </aura:event>

    4. Handle the event in Component B.
    <aura:handler name=”EventE” event=”EventE” action=”{!c.handleComponentEvent}”/>

    5. Code for Component B controller:-
    {
        handleComponentEvent : function(cmp, event) {
         var message = event.getParam(“message”);
         // set the handler attributes based on event data
         cmp.set(“v.messageFromEvent”, message);
        }
    }

    That’s all for Component Event. Let’s talk about Application Event.

    Application Event:-

    1. Firstly you have to register an event in component A. Well, in Application event, it is not mandatory to register event but here we are registering the event.
    <aura:registerEvent name=”EventE” type=”c:EventE”/>

    2. Fire the event by clicking any button, like onclick=”{!c.fireComponentEvent}”. Controller Code is here:-

    {
      fireApplicationEvent : function(cmp, event) {
    // Get the application event by using the
    // e.. syntax
    var appEvent = $A.get(“e.c:EventE”);
    appEvent.setParams({
    “message” : “An application event fired me. ” +
    “It all happened so fast. Now, I’m everywhere!” });
    appEvent.fire();
       }
    }

    3. In Event E we have to pass data message so it look like this
    <aura:event type=”APPLICATION”>
    <aura:attribute name=”message” type=”String”/>
    </aura:event>

    4. Handle the event in Component B.
    <aura:handler name=”EventE” event=”EventE” action=”{!c.handleApplicationEvent}”/>

    5. Code for Component B controller:-
    {
        handleApplicationEvent : function(cmp, event) {
         var message = event.getParam(“message”);
         // set the handler attributes based on event data
         cmp.set(“v.messageFromEvent”, message);
        }
    }

    Hope this will you.
    Thanks.

     

    • This reply was modified 6 years, 2 months ago by  Avnish Yadav.
  • Hello,

    Steps involved in preparing and importing data from a sample .csv file using the Data Import Wizard are -

    1. From Setup, enter Data Import Wizard in the Quick Find box, then select Data Import Wizard.
    2. Launch the Data Import Wizard
    3.  Choose the Standard Object.
    4. Map the column if not map properly
    5. Start the import
    6. Check your status.

    Thanks.

  • Avnish Yadav

    Member
    September 10, 2018 at 7:26 am in reply to: How to insert null values into Dataloader?

    Hello,

    Login the DataLoader->Settings->Insert Null Values->Ok

    then you can insert the null values in the Salesforce Records

    Thanks.

     

  • Avnish Yadav

    Member
    September 10, 2018 at 6:58 am in reply to: What is the use of retainAll(ele) in Salesforce?

    Hello Prachi,
    retainAll(): Retains only the elements in this set that are contained in the specified list.
    Syntax:

    Set<integer> set1 = new Set<integer>{1, 2, 3};
    List<integer> list1 = new List<integer>{1, 2, 4, 3};
    Boolean result = set1.retainAll(list1);
    System.assertEquals(true, result);

    Hope this will help.
    Thanks

  • Avnish Yadav

    Member
    September 10, 2018 at 6:51 am in reply to: What are fine grained and coarse grained components in Salesforce?

    Hello Prachi,

    Coarse-grained components provide a significant amount of functionality in a single component, and might add a lot of information and user interface to the page it’s used on.

    Fine-grained components provide more focused functionality, and enable you to design the page to look and behave the way you want.

    Thanks.

  • Avnish Yadav

    Member
    September 10, 2018 at 6:46 am in reply to: How can we call future method from Salesforce batch apex?

    Hello Prachi,

    Salesforce doesn't allow a future method to be called from another future method or a batch job. Before calling your future method, you should check if a future or batch job is already running. This would be a best practice for any code you ever write that calls a future method. Good news is that it's very easy. Example below:

    if(System.IsBatch() == false && System.isFuture() == false){ 
        // make your future call here 
    }

    Thanks.

  • Avnish Yadav

    Member
    September 10, 2018 at 6:43 am in reply to: How to add lightning component in Salesforce visualforce page?

    Hello Prachi,

    There are three steps to add Lightning 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().

    Thanks.

     

     

     

  • Avnish Yadav

    Member
    September 10, 2018 at 6:41 am in reply to: Why should we go for Salesforce Lightning Component?

    Hi Prachi,

    Lightning components give us a client-server framework that accelerates development, as well as app performance, and is ideal for use with the Salesforce mobile app and Salesforce Lightning Experience.

    Thanks.

  • Avnish Yadav

    Member
    September 10, 2018 at 6:39 am in reply to: What is the difference between AJAX and REST in Salesforce?

    Hi Prachi,

    JAX basically refers to making an asynchronous request in JavaScript, traditionally sending/receiving XML (although nowadays, JSON is often used instead of XML). So that's the technique you use on the client-side.

    REST is a concept for HTTP request exchange, so you're making RESTful request calls (e.g. 'get') against the REST-API  you implemented on the server side.

    Thanks.

  • Avnish Yadav

    Member
    September 10, 2018 at 6:38 am in reply to: Why can there only be one trigger for each Salesforce Object?

    Hi Prachi,

    You can write as many triggers per Object, but the allowed limit is 3,000,000 characters for the entire triggers and apex classess for a dev org, and the best practice is to have all trigger event operations into the singe trigger with the if conditions.

    Thanks.

  • Avnish Yadav

    Member
    September 10, 2018 at 6:34 am in reply to: What is the difference between a territory and queue in Salesforce?

    Hi Prachi,

    Queues are typically used when you want to assign a record to a bunch of users. With the help of queues, you can assign a record to multiple users (using queues) so that any member of the queue can work on the record. It also allows the users to have their separate views.

    and

    Territory Management Concepts. Territory management is an account sharing system that grants access to accounts based on the characteristics of the accounts. It enables your company to structure your Salesforce data and users the same way you structure your sales territories.

    Thanks.

     

     

  • Avnish Yadav

    Member
    September 10, 2018 at 6:30 am in reply to: How to activate List and Hierarchy custom settings in Salesforce?

    Hello,

    Go to Setup->Data Management->Schema Settings and Enable "Manage List Custom Settings Type"

    Hope this will help.

    Thanks.

Page 13 of 21