Forum Replies Created

Page 7 of 53
  • Parul

    Member
    September 24, 2018 at 12:58 am in reply to: Explain the difference between CRM and PRM in Salesforce.

    PRM applications are built for indirect sales (think: partners). They extend your CRM to help you manage partners and make sure the customer has the same great experience whether they talk to your sales team or your partner. Plus, they help properly train partners and have the customer data and tools partners require to drive retention and future sales.

    PRM extends CRM functionality to your partners, then adds lots of partner-specific functions on top.
    Cloud Computing is a model for enabling ubiquitous, convenient, on-demand network access to a shared pool of configurable computing resources that can be rapidly provisioned and released with minimal management effort or service provider interaction“.

  • Yes we can, Lightning components were designed with Lightning Experience in mind. As the core Salesforce app shifts to the app-centric framework, we want you to shift along with us. We want you to think about developing on the platform in a whole new way.

  • There is no need to specify it for each component beacause Child component inherits the CSS

  • Parul

    Member
    September 24, 2018 at 12:53 am in reply to: What is  aura:method tag in Salesforce Lightning?

    aura: method which allows you to directly call a method in a component’s client-side controller instead of firing and handling a component event. It passes value from the child component to the parent component.

  • Parul

    Member
    September 24, 2018 at 12:43 am in reply to: What is the use of implements in Salesforce Lightning Component?

    implements used for interface that enables the components to grant access to extra context data, a component can implement more than one interfaces.

  • Parul

    Member
    September 24, 2018 at 12:40 am in reply to: What is aura:registerevent in Salesforce Lightning Component?

    Use the <aura:registerEvent> or <aura:dependency> tags to ensure that the event is sent to the client, when needed.

    <aura:registerEvent name="Event" type="c:EventName"/>

    name’ attribute which is relevant only to component event and is not used for application event.

    ‘type’ which lets the component know which event would be fired.

  • Parul

    Member
    September 24, 2018 at 12:34 am in reply to: How can we subscribe to an event in Salesforce Lightning Component?

    In order to use Application event we need to follow the Four simple steps

    1. Create Application Event
    2. Fire the event from the child component
    3. handle the event into Parent Component
    4. Execute the action into Parent Component

    Step 1 – Create Application Event

    Open developer console and then File -> New -> Lightning Event -> name it applicationEvent and use below code.

    <aura:event type=”APPLICATION” description=”Event template” >
    <aura:attribute name=”testWord” type=”String” />
    </aura:event>

    Step 2 – Register the event

    Unlike the Component we do not need to register the Application Event.

    Step 3 – Fire the component Event

    Use below code in javascript to execute the event.

    ({
    handleClick : function(component, event, helper) {
    var appEvent = $A.get(‘e.c:applicationEvent’);
    appEvent.setParams({
    “testWord” : ‘Value From Application Event’
    });
    appEvent.fire();
    },
    })

    Explanation : –

    $A.get(‘e.c:applicationEvent’); – Finds the event with the name provided after c: and in our case it it applicationEvent.
    setParams : – is used to send the parameters to the parent component if we are using any attribute in the event. In our case we have used attribute testWord
    fire() :- Executes the event

    Step 4: – Handle the Event in any Component

    A single line of code to handle the event into the component

    <aura:handler event=”c:applicationEvent” action=”{!c.doHandleCompEvent}” />

  • Parul

    Member
    September 24, 2018 at 12:30 am in reply to: How can we communicate between two Salesforce Components?

    Attributes or Methods to pass data down the component hierarchy and Lightning Events to pass data up and around in the component hierarchy are two ways to communicate between two component

  • Yes css to be used within Lightning component.

    In Lightning components, basically we can use CSS by 3 ways-:
    Use Inline CSS
    By external CSS file.
    By create style tab in component bun

  • Parul

    Member
    September 24, 2018 at 12:16 am in reply to: Can we include external JavaScript/CSS libraries in Salesforce Components?

    <ltng:require styles="/resource/firstcss[,/resource/secondcss]"
    scripts='/resource/javascript1.js,[/resource/javascript2.js]' afterScriptsLoaded="
    {!c.firstLoadFunction}" />

    Explanation of above example:
    1. style – access multiple CSS files with comma separated. Load files from left to right.
    2. script – access multiple javascript files with comma separated. Load files from left to right.
    3. afterScriptsLoaded – to provide javascript function to notify when all javascript files are loaded.

  • Parul

    Member
    September 24, 2018 at 12:11 am in reply to: What is the sequence of migrating data from one Salesforce org to another?

    Your question is too broad.
    You should import first parent records and then import the child records.
    Like this sequence:

    User
    Account
    Contact
    Case
    Task
    Event
    Also, rather than migrating all the data from one sandbox to other, you can think of refreshing a sandbox from the sandbox itself as long as sandbox types are same.

  • If your org isn’t set to let duplicate records be added to Salesforce from Data.com, Data.com blocks the duplicate records, and the duplicate rule doesn’t run. The user trying to add records from Data.com receives an error log detailing which records couldn’t be added.

    If your org allows duplicate records to be added to Salesforce from Data.com, the duplicate rules run. The duplicate rule determines whether the duplicate record is allowed or blocked. Records blocked by the duplicate rule appear in the error log.

  • Parul

    Member
    September 24, 2018 at 12:10 am in reply to: How many external Id's are allowed on a Salesforce Object?

    You can designate up to 25 External ID fields per object.

    External ID fields must be Custom text, number or email fields.
    External ID fields contain record IDs from systems outside Salesforce.
    You can use the upsert call to match against External ID fields during import or integration.
    External ID fields are indexed, so selective filters on them should run quickly.

  • Parul

    Member
    September 24, 2018 at 12:10 am in reply to: Explain Organization wide default (OWD) in Salesforce.

    There are four levels of access that can be set:
    Public Read/Write/Transfer (only available of Leads and Cases)
    Public Read/Write
    Public Read/Only
    Private

  • Parul

    Member
    September 24, 2018 at 12:09 am in reply to: How to create share table record using apex in Salesforce?

    A custom object’s share object allows four pieces of information to be defined:
    The record being shared.
    The User or Group with whom the object is being shared.
    The permission level being granted to the User or Group.
    The reason why the User or Group has been granted sharing access.

  • Parul

    Member
    September 24, 2018 at 12:09 am in reply to: Uses of Custom Button and Link in Salesforce Lightning Component.

    Custom links can link to an external URL, such as http://www.google.com, a Visualforce page, or your company’s intranet. Custom buttons can connect users to external applications, such as web pages, and launch custom links.
    There are three primary types of custom buttons and links that you can create.
    List button—Appears on a related list on an object record page.
    Detail page link—Appears in the Links section of the record details on an object record page.
    Detail page button—Appears in the action menu in the highlights panel of a record page.

  • Not possible to delete the workflow when the workflow is having any pendingtime-dependent actions only you can deactivate the Workflow

  • Parul

    Member
    September 24, 2018 at 12:03 am in reply to: Time-Dependent Workflow – Considerations in Salesforce?

    Must have to specify time using days and hours. Add actions to existing time triggers.

  • Parul

    Member
    September 23, 2018 at 11:55 pm in reply to: What is lightning: or ui: in any Salesforce Lightning Component?

    Lightning components in the lightning namespace to complement the existing ui namespace components. In instances where there are matching ui and lightning namespace components, we recommend that you use the lightning namespace component. The lightning namespace components are optimized for common use cases. Beyond being equipped with the Lightning Design System styling, they handle accessibility, real-time interaction, and enhanced error messages.
    The Lightning Component framework is a UI framework for developing dynamic web apps for mobile and desktop devices. The framework supports partitioned, multi-tier component development that bridges the client and server.

  • Parul

    Member
    September 23, 2018 at 11:50 pm in reply to: Why do we use @AuraEnabled annotation in Salesforce?

    The @AuraEnabled keyword exposes an Apex method to the Aura framework for use in Lightning

  • Parul

    Member
    September 23, 2018 at 11:48 pm in reply to: Why do we use $A.enqueueAction(action) in Salesforce?

    $A.enqueueAction(action) sends the request the server. More precisely, it adds the call to the queue of asynchronous server calls. That queue is an optimization feature of Lightning.

    ({
    doInit : function(component, event) {
        var action = component.get("c.findAll");
        action.setCallback(this, function(a) {
            component.set("v.contacts", a.getReturnValue());
        });
        $A.enqueueAction(action);
    }
    })
  • Parul

    Member
    September 23, 2018 at 11:46 pm in reply to: What are the different ways to conditionally display markup in Salesforce?

    There are different ways to conditionally display markup, and what is the preferred approach;

    use the <aura:if> tag

  • Parul

    Member
    September 23, 2018 at 11:45 pm in reply to: What is $Resource global value provider in Salesforce?

    The $Label global value provider enables you to access labels stored outside your code. The $Locale global value provider returns information about the current user's preferred locale. The $Resource global value provider lets you reference images, style sheets, and JavaScript code you've uploaded in static resources.

    list of Global value providers in Salesforce:

    $globalID
    $Browser
    $Label
    $Locale
    $Resource

     

    Thanks

  • To retrieve the name of the button that fired the event call getLocalId() to get the aura:id of the clicked button.

    $("button").click(function() {
    var fired_button = $(this).val();
    alert(fired_button);
    });

  • the names of interfaces that are added to a Lightning component to allow it to be used as custom tabs, and to be used in Lightning and Community builder:

    ‘force:appHostable’ used as a custom tab in Lightning Experience or the Salesforce app
    ‘forceCommunity:appear in Community Builder, a component must implement the forceCommunity:availableForAllPageTypes interface

Page 7 of 53