Forum Replies Created

Page 5 of 5
  • shradha jain

    Member
    July 27, 2018 at 9:49 am in reply to: How to use debug log in "if" statement in Salesforce?

    Hello Chanchal,

    You can  use debug log in “if” statement by writing Debug.log("message"). Here is an example-

    if (gameObject != null)
    {
    Debug.Log("The gameObject is NOT null");
    }
    else
    {
    Debug.Log("The gameObject IS null");
    }

  • Hello Prachi,

    If you want  to create collapsible/expandable rows in a table based on user action in lightning then you need one Boolean value per row. Typically, the easy way to do this it to include it directly in the data, or as a related array. Here's a simple example for you.

    <aura:application extends=”force:slds”>
        <aura:attribute name=”items” type=”Object[]” default=”[]” />
        <aura:handler name=”init” value=”{!this}” action=”{!c.init}” />
        <lightning:layout multipleRows=”true”>
            <aura:iteration items=”{!v.items}” var=”item” indexVar=”itemIndex”>
                <lightning:layoutItem size=”12″>
                    <h1>
                        <lightning:buttonIcon value=”{!itemIndex}” onclick=”{!c.toggle}” iconName=”{!item.expanded?’utility:chevrondown’:’utility:chevronright’}” />
                        {!item.title}
                    </h1>
                    <aura:if isTrue=”{!item.expanded}”>
                        <div>
                            Extra content would be shown here.
                        </div>
                    </aura:if>
                </lightning:layoutItem>
            </aura:iteration>
        </lightning:layout>
    </aura:application>

    Here is the javascript for the component: 

    ({
        init: function(component, event, helper) {
            component.set("v.items", [
            { expanded: false, title: "Row 1" },
            { expanded: false, title: "Row 2" },
            { expanded: false, title: "Row 3" }
            ]);
        },
        toggle: function(component, event, helper) {
            var items = component.get("v.items"), index = event.getSource().get("v.value");
            items[index].expanded = !items[index].expanded;
            component.set("v.items", items);
        }
    })

    Notice here we set the Boolean value for the row I want to toggle. Doing this allows any number of rows to be collapsed/expanded as per your desire.

  • Hello Prachi,

    You can change the name of the checkbox in lightning through CSS. The CSS code is provided below:

    .THIS .slds-th__action_form span {

    display: none;

    }

    .THIS .slds-th__action_form:after{

    content: 'AAA'; //Change to text that you want

    }

    But then you will have to adjust/increase the width of the column to fit your text.

  • shradha jain

    Member
    July 27, 2018 at 7:42 am in reply to: How does Salesforce Lightning framework support Inheritance?

    In lightning component when you want to create a component that can be extended you must set a value of true for the extensible attribute of the aura:component. By default, components are not extensible, just like Apex classes are not.When a component extends another component it inherits all of the helper methods and attributes. It also has the ability to call super component controller actions. All event handlers in the super component are inherited by the sub component. Additionally, they can both handle the same event, but the ordering of handler execution is not defined (kind of like multiple Apex triggers on a single object).

  • Hello Anurag,

    The default timeout is 10 seconds. A custom timeout can be defined for each callout. The minimum is 1 millisecond and the maximum is 120,000 milliseconds.

  • shradha jain

    Member
    July 26, 2018 at 12:04 pm in reply to: What is Lightning Data Services in Salesforce?

    Lightning Data Service is used to load, create, edit, or delete a record in your component without requiring Apex code. It handles sharing rules and field-level security for you. In addition to not needing Apex, it improves performance and user interface consistency. Lightning Data Service identifies and eliminates requests that involve the same record data, sending a single shared data request that updates all relevant components. Not only does this eliminate inconsistent data between components, it also provides a way to cache data to work offline in case the user gets disconnected, intelligently syncing the data once the connection is restored. Data access with Lightning Data Service is simpler than the equivalent using a server-side Apex controller.

  • shradha jain

    Member
    July 26, 2018 at 9:36 am in reply to: What is a Connected App in Salesforce?

    Hello Avnish,

    A "Connected App" is an application that can connect to salesforce.com over Identity and Data APIs. Connected Apps use the standard OAuth 2.0 protocol to authenticate, provide Single Sign-On, and acquire access tokens for use with Salesforce APIs. In addition to standard OAuth capabilities, connected apps allow Salesforce admins to set various security policies and have explicit control over who can use the corresponding apps.

    Look for Connected Apps in your development environment by going to Setup > Create > Apps

    • Connected Apps is located below the standard Apps pane.
    •  Click New next to Connected Apps, and create your Connected App.
  • shradha jain

    Member
    July 25, 2018 at 1:10 pm in reply to: What is aura definition bundle in Salesforce Lightning?

    Hello Madhulika,

    A bundle contains a Lightning definition and all its related resources. The definition can be a component, application, event, interface, or a tokens collection.

    Unlike other metadata components, an AuraDefinitionBundle component isn’t represented by a single component file but instead by a collection of component definition files. Each definition file represents a resource in a bundle, such as markup, applications, code files (including controllers and helpers), events, documentation, and interfaces.This object is available in API version 32.0 and later.

    • This reply was modified 6 years, 3 months ago by  shradha jain.
  • shradha jain

    Member
    July 25, 2018 at 1:01 pm in reply to: How to insert null values into Dataloader?

    Hello Prachi,

    Perform the following steps to insert null values in dataloader:

    1. Login the DataLoader.
    2. Go to Settings.
    3. Insert Null Values.
    4. Click Ok.

    and then you can insert the null values in the Salesforce Records

  • Hello Avnish,

    Trigger.New is simply a list of the records being processed by the trigger, so if all you need to do is loop through them then you can use that. It returns a list which is ordered. Suppose you have a custom object Custom_obj__c then  Trigger.New is a list represented as  List<Custom_obj__c>.

    Trigger.newMap just allows you to target specific records by Id should you not need to process everything, or if you need to map other records back to these. It returns a map which is unordered. Trigger.newMap  is a map represented as  map<Id, Custom_obj__c>.

    • This reply was modified 6 years, 4 months ago by  shradha jain.
    • This reply was modified 6 years, 4 months ago by  shradha jain.
  • A User Package License represents a license of an installed managed package, assigned to a specific user.
    1. Package license Id: Package license Id is the Id of the installed package.
    2. Assigning Id: Assigning Id is the Id of the user.

    • This reply was modified 6 years, 4 months ago by  shradha jain.
  • shradha jain

    Member
    July 19, 2018 at 9:20 am in reply to: What is API Versioning in Salesforce?

    Hello Madhulika,
    Every time Salesforce releases a new application version, its API version is updated as well.It tells the version of the developed code . API versioning plays a important role while developing a code for an application .If Apex class versioning in developer and sandbox are not same then it will through an error "Mismatch API versions".

  • Hello Chanchal,
    There is no limit on number of components defined within an application by salesforce

  • Hello Chanchal,
    Yes, you can inherit styles from a parent component.

  • shradha jain

    Member
    July 18, 2018 at 9:50 am in reply to: How to create Data Extention in Salesforce Marketing Cloud?

    Hello Anjali,

     The steps to create data extensions in marketing cloud are:

    • Hover over Subscribers.
    • Click Data Extensions.
    • Click the Create button
    • Click Standard Data Extension(according to your choice).
    • Click OK.
    • Complete the information in the Properties section:

    For Creation Method  select Create from New and complete  the details such as Name, External Key, Description, Location, Used for Sending, Used for Testing, Campaign.

    • Click Next.
    • Retention Setting - Select On to ensure that the application deletes all records in the data extension at the same time

    a. Delete:

    1. Individual Records - When this option is selected, the data extension is retained but the individual records inside the data extension are deleted.
    2. All Records - When this option is selected, the data extension is retained but the records inside the data extension are deleted.
    3. All Records and Data Extension - When this option is selected, the entire data extension and the records inside the data extension are deleted.

    b. Period:

    1. After: Enter the number of days after the data extension was created to wait before deleting.
    2. Reset period on import: To extend the retention date following a new import.
    3. On: Select a specific date to delete.

    • Click Next.
    • Include a field with the Email Address data type for email sends or a Phone data type for SMS sends in sendable data extensions.
    • If the Email Address or Phone data types are not present, the subscriber receives no messages sent using the data extension.
    • Click Create.
    • This reply was modified 6 years, 4 months ago by  shradha jain.
    • This reply was modified 6 years, 4 months ago by  shradha jain.
  • Hello Madhulika,

    The core differences between Pardot and Marketing Cloud are:

    1. They are designed with different types of businesses in mind: The Pardot platform is designed for business-to-business companies (B2B) whereas the Marketing Cloud is designed for business-to-consumer companies (B2C).

    2. Firm Size: The Pardot platform is used for mid-size firms whereas the marketing cloud is used for large size firms.

  • A session ID is a unique number that a Web site's server assigns a specific user for the duration of that user's visit (session).

    If you want to request the server ,you must have a session Id so that the server can process the request.The request is served if the session id is not expired.

  • shradha jain

    Member
    July 17, 2018 at 9:33 am in reply to: What are the limitations of the WSDL file in Salesforce?

    Hello chanchal,

    Limitations of WSDL file are:

    1. A WSDL file cannot have both a <wsdl:include> and a <wsdl:types> element but you can use  <xsd:include> inside <wsdl:types>.
    2.  A WSDL file cannot have more than one <wsdl:include> element.
    3.  Only SOAP operations are considered in WSDL file.
    4. All MIME and HTTP operations are ignored during consumption.
  • Hello Prachi,

    There are four steps to add Lightning components to a Visualforce page:
    1. Add the Lightning Components for Visualforce JavaScript library to your Visualforce page using the "<apex:includeLightning/>" component.
    2. Create  a Lightning app that declares your component dependencies

    3. Reference this Lightning dependency  app.

    4.  Create the component on the page using the function "$Lightning.createComponent()".

    • This reply was modified 6 years, 4 months ago by  shradha jain.
  • shradha jain

    Member
    July 12, 2018 at 1:09 pm in reply to: What are Enterprise and Partner WSDL in Salesforce?

    Hello Madhulika,

    1.  Enterprise WSDL-  It is one of the file that is provided by Salesforce. It is bound to Salesforce configuration of specific organisation. It is intended for customers.
    2.   Partner WSDL- It is another file provided by salesforce. It can be used  for  salesforce configuration of any organisation. It is intended for partners.

    Both the files are the XML document which describes how to communicate using a web service.

    • This reply was modified 6 years, 4 months ago by  shradha jain.
    • This reply was modified 6 years, 4 months ago by  shradha jain.
  • We cannot perform callout after DML statement because callout will take time to return and salesforce does not wait to write or update records in database.

  • The different method of Batch Apex Class are:

    1. start method:
    It is used to collect the variables, records or objects to be passed to the method execute. It is called once at the beginning of a Batch Apex job. It returns either a Database.QueryLocator object or an Iterable that contains the variables, records or objects passed to the job.

    2. execute method:
    It performs the processing for each batch of data passed to the method. The default batch size is 200 records. The maximum size is 2000 records. Batches of records are not guaranteed to execute in the order they are received from the start method.

    3. finish method:
    It is used to execute post-processing operations. The post-processing operations could be sending an e-mail.

  • shradha jain

    Member
    June 27, 2018 at 8:23 am in reply to: What are the Escalation Rules in Salesforce?

    Esclanation rules in Salesforce are used to escalate cases automatically when a case is not handled within a certain period of time.The cases are escalated to new person after bussiness hours.

Page 5 of 5