Forum Replies Created

Page 3 of 5
  • Yogesh

    Member
    October 18, 2019 at 11:01 am in reply to: What are the ways leads can be captured with Salesforce?

    Hello,

    these are the ways leads can be captured with Salesforce

    1. Web to Lead

    2. Lead Import

  • Hello,

    Below are the steps for allowing certain users to bypass a Validation Rule :

    1. Create a Custom Permission.
    2.Create a Permission Set and mark the Custom Permission as active in that set.
    3.Assign users to the Permission Set who should be able to bypass the Validation Rule.
    4.a line to the Validation Rule that references the Custom Permission

  • Yogesh

    Member
    October 17, 2019 at 7:15 am in reply to: How to use a custom setting in apex class in salesforce?

    Hello,

    Custom settings are like custom objects, but have an organization wide access. Data can be added in them like any Object, through APEX code, or by creating new record. However the access is available organization wide.

    There are two types of custom settings:

    List Custom Settings: A type of custom setting that provides a reusable set of static data that can be accessed across your organization.

    Hierarchy Custom Settings: A type of custom setting that uses a built-in hierarchical logic that lets you personalize settings for specific profiles or users.

    You can query Custom Settings using following Methods :

    List Custom Setting Methods
    The following are instance methods for list custom settings.
    getAll()
    Returns a map of the data sets defined for the custom setting.
    getInstance(dataSetName)
    Returns the custom setting data set record for the specified data set name. This method returns the exact same object as getValues(dataSetName).
    getValues(dataSetName)
    Returns the custom setting data set record for the specified data set name. This method returns the exact same object as getInstance(dataSetName).

     

    Thanks

  • Yogesh

    Member
    October 17, 2019 at 7:10 am in reply to: How can I call a mock class in test class in salesforce?

    Hello,

    If you have specified the values of the fake response, instruct the Apex runtime to send this fake response by calling Test.setMock in your test method. For the first argument, pass HttpCalloutMock.class, and for the second argument, pass a new instance of your interface implementation of HttpCalloutMock, as follows:

    Test.setMock(HttpCalloutMock.class, new YourHttpCalloutMockImpl());

  • Yogesh

    Member
    October 17, 2019 at 7:00 am in reply to: How can I create an edit button in lightning component in salesforce?

    Hello,

    you can make use of force:editRecord tag to Open the page to edit the record specified by recordId.By Onclicking of button it redirect to standard Modal popup edit page  in Lightning Component by using force:editRecord.

    example:-

    Component:-

    <aura:component implements="flexipage:availableForAllPageTypes,lightning:actionOverride,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:appHostable" access="global" >

    <aura:attribute name="recordId" type="String" default="0032800000dampDAAQ" />

    <lightning:button label="Edit Record" onclick="{!c.edit}"/>

    </aura:component>

    Controller:-

    ({

    edit : function(component, event, helper) {

    var editRecordEvent = $A.get("e.force:editRecord");

    editRecordEvent.setParams({

    "recordId": component.get("v.recordId")

    });

    editRecordEvent.fire();

    }

    })

  • Hello,

    A system administrator consider  these things before importing a set of records into Salesforce.

    1.The import file should include a record owner for each record .
    2.Currency lead values will default to the personal currency of the record owner.

  • Yogesh

    Member
    October 17, 2019 at 6:52 am in reply to: When are Data validation Rules Enforced in salesforce?

    Hello,

    Validation rules verify that the data a user enters in a record meets the standards you specify before the user can save the record. A validation rule can contain a formula or expression that evaluates the data in one or more fields and returns a value of “True” or “False”. Validation rules also include an error message to display to the user when the rule returns a value of “True” due to an invalid value

  • Yogesh

    Member
    October 14, 2019 at 6:33 am in reply to: What is renderIf?

    Hello,

    It is basically used for show and hide the components.

    To add more – aura:renderIf is deprecated as I read on developer.salesforce, use aura:if

    <aura:component>
    <aura:if isTrue=”{!v.truthy}”>
    True
    <aura:set attribute=”else”>
    False
    </aura:set>
    </aura:if>
    </aura:component>

  • Yogesh

    Member
    October 14, 2019 at 5:57 am in reply to: What is the use of access=“global” in salesforce?

    Hello,

    access=” global” – This means the method or variable can be used by any Apex code that has access to the class, not just the Apex code in the same application. This access modifier should be used for any method that needs to be referenced outside of the application, either in the SOAP API or by other Apex code. If you declare a method or variable as global, you must also declare the class that contains it as global.

  • Yogesh

    Member
    October 14, 2019 at 5:53 am in reply to: What is Lightning Design System (SLDS) in salesforce?

    Hello,

    The Salesforce Lightning Design System (slds) is a CSS framework that gives you access to the icons, color palettes, and font that our developers use to create this new Salesforcelook and feel.

  • Hello,

    Using the <aura:if> tag is the preferred approach to conditionally display markup but there are alternatives. Consider the performance cost and code maintainability when you design components. The best design choice depends on your use case.

     

  • Hello,

    Component events: to talk to a parent using the capture and bubbling mechanism, like with DOM events. Usually, one component is interested by the event, like an event aggregator.

    Application events: to broadcast to other components and not exclusively ancestors. Applications events can talk to many components that can be interested by the event. The broadcast can be boxed to an area of the DOM (everything below a DIV for example).

  • hello,

    We need to implement the following “force: lightningQuickAction” so that we can use the component as a Quick Action

    Thanks.

  • Yogesh

    Member
    October 11, 2019 at 2:32 pm in reply to: Do We Need A Namespace To Develop Lightning Components ?

    Hello,

    No, it is not mandatory.

    Thanks.

  • hello,

    A couple of options exist between SVN (for example) and Ant.

    1. SVN route, you could create a 'shared code' repo and utilise Externals, check out this link.
    2.  Ant route, you can build an Ant script that explicitly pulls in (via the SVN tasks for example) source from different locations prior to deploying to your development and/or packaging orgs.
  • Hello,

    Component events :- are used to do communication between child and parent. They use bubbling and capture same as used in DOM events. A change in a child component can be communicated to the parent component via component event.

    Application events :- are used to communicate any change in the component to a broader audience. Any component who has registered for this event will get a notified.

  • Yogesh

    Member
    October 9, 2019 at 11:29 am in reply to: How to display toast in Salesforce visualforce page?

    Hello,

    Toast messages can be sent using “showToast” method which is the latest member in sforce.one object. Which means, these messages can only be displayed in Salesforce Mobile app and would not be supported in desktop experience. The change applies to Lightning Experience, Lightning communities, and all versions of the mobile app.

    for an example:-

    <apex:page >

    <script type=”text/javascript”>

    window.onload = setupPage;

    function setupPage() {

    //function contains all code to execute after page is rendered

    //Showing a toast message

    sforce.one.showToast({

    “title”: “Hello There!!”,

    “message”: “I am a toast message being fired from visualforce page”,

    “type”: “success” //supported types are error, success, info, warning

    });

    }

    </script>

     

    <div> Toast Message Demo </div>

    </apex:page>

  • Yogesh

    Member
    October 9, 2019 at 11:15 am in reply to: How to take Salesfoce schema backup ?

    Hello,

    You can try free app from AppExchange if that fulfill your needs. Here is the link: https://appexchange.salesforce.com/listingDetail?listingId=a0N30000003KNErEAO

  • Yogesh

    Member
    October 4, 2019 at 3:05 pm in reply to: What is the leadChangeEvent object in salesforce?

    Hello,

    Change events are available for all custom objects defined in your Salesforce org and a subset of standard objects. Select the objects that you want to get notifications for on the Change Data Capture page in Setup.

  • Yogesh

    Member
    October 4, 2019 at 2:00 pm in reply to: What should I look for when hiring a Salesforce Dev or Architect?

    Hello,

    1.Design and build high-performance, reusable, and reliable Apex code with best practices

    2.Experience in designing custom objects, custom fields, picklists, page layouts, workflow, approval processes, validation rules, custom tabs, reports, Visualforce pages, dashboards, and email generation according to application requirements
    3. Deep understanding of SFDC concepts and practices

    4. Strong understanding of database design concepts data migration and data integration
    5.  Experience integrating Salesforce with other systems

    It will be difficult to understand whether the candidate possesses this skills by looking at the resume. I suggest you to assess these skills before you invite them for the interview. Best way to do this would be to use Salesforce aptitude testprovided by skills testing software, Interview Mocha. IT recruiters are finding online assessment as the most efficient way for candidate testing. This helps you to select only relevant candidates for the interview and thereby saving up to 60% of your interview time. This provides only best candidates who can be job fit.

    Hope this answer is useful to you.

  • Yogesh

    Member
    October 4, 2019 at 1:55 pm in reply to: Do we need a namespace to develop Lightning Components?

    Hello,

    You create Lightning components in development organisation only. Reason for this is, it need namespace and only developer edition can have namespace.

    Lightning components can only be shipped as managed package only. So you can deploy them in any organisation which support apex.

  • Yogesh

    Member
    October 4, 2019 at 1:51 pm in reply to: What are the tools included in lightning ?

    Hello,

    The tools included in lightning are:

    Browser: Google Chrome
    Browser Debugger: Chrome DevTools
    DevTools Extension: Salesforce Lightning Inspector
    Editor: Force.com IDE

  • Yogesh

    Member
    October 4, 2019 at 1:50 pm in reply to: How to insert a user in test class in salesforce?

    Hello,

    Here is the example to use System.runAs() in apex test class: For example we have a class to create the campaign only if logged in user is marketing profile otherwise throwing error.

    Example:-

    // Apex Trigger

    trigger campaignBeforeInser on Account (before insert) {
    for(Campaign campaign: trigger.new){
    if(userInfo.getProfileId == ‘marketing profile Id’){
    campaign.currency = ‘USD’;
    }
    else{
    campaign.addError(‘you are not authorized to create campaign’);
    }
    }
    }
    //Here is the Test class for above trigger.

    @isTest
    private class CampaignTriggersTest{
    private static testmethod void campaignTriggersTest(){
    Profile prof = [select id from profile where name LIKE '%marketing%'];
    User user = new User();
    user.firstName = ‘test1’;
    user.lastName = test2;
    user.profileId = prof.id,username = ‘[email protected]’;
    user.email = ‘[email protected]’;
    insert user;
    system.runAs(user){
    Campaign campaign = new Campaign();
    campaign.name = ‘laptop’;
    insert campaign();
    }
    }
    }

  • Yogesh

    Member
    October 3, 2019 at 7:34 am in reply to: What is the use of <aura:method> in salesforce?

    Hello,

    Use aura:method to define a method as part of a component’s API. This enables you to directly call a method in a component’s client-side controller instead of firing and handling a component event. Using aura:method simplifies the code needed for a parent component to call a method on a child component that it contains.

  • Hello,

    Document

    A description, sample code, and one or multiple references to example components.

    Renderer

    Client-side renderer to override default rendering for a component.

Page 3 of 5