Forum Replies Created

Page 20 of 21
  • Avnish Yadav

    Member
    July 20, 2018 at 6:56 am in reply to: What are changeset, eclipse & ant in Salesforce?

    Hello Chanchal,

    Comparing Change Sets, Eclipse Deployment and Ant:-

    1. Eclipse and Ant will not keep a track of the Classes and Pages which were deployed earlier. On the Other hand, if we use Change Sets then all old deployment will be tracked.
    2. A change set can only be moved between a live site and its sandbox. Eclipse and Ant can be used to move between any orgs like live site and developer org.
    3.  Change Sets allow the ability to be cloned whereas Eclipse doesn't .

    Thanks.

     

  • Hello Anurag,

    You can call inner inside your outer class by making object of inner class (not for static methods or static variables).

    Example:

    public class OuterClass{

       // do some task

        InnerClass obj = new InnerClass();

        public class InnerClass {

        //do some task

        }

    }

     

    Thanks.

  • Avnish Yadav

    Member
    July 19, 2018 at 12:05 pm in reply to: What is sandbox refreshing in Salesforce?

    Hi Shradha,

    Sandbox Refreshing - Refreshing a sandbox updates the sandbox’s metadata from its source org. If the sandbox is a clone or if it uses a sandbox template, the refresh process updates the org’s data in addition to its metadata.

    Thanks.

  • Avnish Yadav

    Member
    July 19, 2018 at 12:02 pm in reply to: What is source code versioning in Salesforce?

    Hi Shradha,

    Source Code Versioning or version control is a software tool that manages the team to change in code over time.

    Importance of version control:-

    1. No need of making the backup, because it will do automatically.
    2.  Different people can work on the projects from different locations.

    Thanks.

  • Avnish Yadav

    Member
    July 19, 2018 at 9:27 am in reply to: How to perform soap callout in Salesforce using https?

    Hello shraddha,

    You can hand code your own manual XML POST and save it to in string and callout using HttpRequest. It will be on you to build up the required XML and then parse the response.

    Here is Example:-

    String s='<soapenv:Envelope xmlns:soapenv="<a target="_blank" href="http://schemas.xmlsoap.org/soap/envelope/"" rel="nofollow">http://schemas.xmlsoap.org/soap/envelope/"</a> ><soapenv:Header>headers here,refer WSDL</soapenv:Header><soapenv:Body> request body.Refer WSDL</soapenv:Body></soapenv:Envelope>';
    HttpRequest req = new HttpRequest();
    req.setEndpoint('the URL from service provider');
    req.setMethod('POST');
    req.setBody(s);
    req.setHeader('Content-Type', 'text/xml');
    req.setHeader('SOAPAction', '""');
    Http http = new Http();
    HTTPResponse res = http.send(req);
    System.debug('Saraag-Here is your response:'+res.getBody());

    Thanks.

  • Avnish Yadav

    Member
    July 18, 2018 at 12:31 pm in reply to: What is Subscriber key in Salesforce marketing cloud?

    Hello Prachi,

    A subscriber key is a text field that contains a value that uniquely identifies a subscriber in your Marketing Cloud account. Marketing Cloud Connect uses the subscriber key to identify the Sales or Service Cloud record associated with the tracking data returned from the Marketing Cloud.

    Thanks.

  • Hello Anurag,

    Yes, you can perform the task-based on input. Let me describe you-

    1.  Use a Visualforce Page to take input.
    2.  Pass that input to apex class.
    3.  Perform the task based on input in apex class.

    Thanks.

  • Avnish Yadav

    Member
    July 18, 2018 at 9:50 am in reply to: What is Lightning Data Services?

    Hi,

    We use Lightning Data Services to retrieve a record data without writing a single piece of Apex Server side code. We need to use the new force:recordData component to achieve this.
    Using this component, we can load, create, edit, or delete a record in your component without requiring Apex code. Lightning Data Service handles sharing rules and field-level security for you. In addition to not needing Apex, Lightning Data Service improves performance and user interface consistency.

    Thanks.

  • Hello,

    We use marketing cloud because of following advantages:-

    1. Flexible subscription model
    2. Email, mobile, and web marketing
    3. Social media marketing
    4. Scalable advertising
    5. Business-to-business (B2B) marketing automation

    Thanks.

  • Avnish Yadav

    Member
    July 17, 2018 at 1:08 pm in reply to: What is lightning out in Salesforce?

    Hello Madhulika,

    We use Lightning Out to run Lightning components apps outside of Salesforce servers.

    Thanks.

  • Avnish Yadav

    Member
    July 17, 2018 at 1:06 pm in reply to: What is List Class in Salesforce?

    Hello Madhulika,

    List Class is a collection type class in Salesforce, which contains all the list method and constructors.

    Thanks.

  • Hello Anjali,

    You can use external JavaScript library, by uploading script file as static resources and include in component by this statement

    <ltng:require scripts="{!$Resource.***resourceName***}" afterScriptsLoaded="{!c.afterScriptsLoaded}" />

     

    Thanks.

  • Hello Anurag,

    You are asking, the difference between, aura framework (i.e. lightning component) and apex framework (i.e. visualforce component). Visualforce components are page-centric and most of the work is done on the server while 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. The lightning component uses JavaScript as the client-side scripting language.

    Thanks.

  • Hello Chanchal,

    You want to include external javascript library, i suggest you to go with static resources , upload your javascript resources and use in your components.

    Thanks

  • Hello Anurag,

    As Java JRE is already installed in our systems, that's why, we are installing the version Linux Tarball that does not includes Java.

    Thanks.

  • Hello Shradha,

    I would say JSON Deserialization is better because it's an automatic parser while in JSON Parser method, you need to parse JSON manually.

    Thanks.

  • Avnish Yadav

    Member
    July 12, 2018 at 9:38 am in reply to: What is the use of Savepoint in Salesforce Apex?

    Hello Sanjana,

    Database.savepoint is a method which is used to define a point which can be roll back to. Suppose you  have written long code which contains many more DML statement, at the some point you will want this DML statement should not be executed, you may need to modify your code, at that time you will have to return that point, savepoint will identifies that point , Rollback will  restore the database to that point(savepoint).

    If any error occurs during a transaction, that contains many statements, the application will roll back to the most recent savepoint and the entire transaction will not be aborted.

    Thanks.

  • Avnish Yadav

    Member
    July 10, 2018 at 6:15 pm in reply to: What aura:method does in Salesforce Lightning Component?

    Hello Prachi,

    The 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.

    Thanks.

  • Hello Prachi,

    For checking API limits already used in your org:-

    Go to Setup | Quick Find System Overview and there you will find the API REQUESTS, LAST 24 HOURS.

    Thanks.

  • Hello Chanchal,

    You want to integrate(means Callout) from one Salesforce org(Source org) to another Salesforce org(Destination org).

    Here is simple steps to complete the task:-

    1. Create a new Remote Setting in Source org.
    2. Create a Connected App in Destination org with unique callback URL.
    3.  Create a apex class in Source org which take inputs of Connected app (i.e. Consumer Key, Consumer Secret, Callback URL, Username and Password) of Destination org. This give you access token for Destination call.
    4. Create an Rest Resource apex class in Destination org which return some data(for doGet Call) or accept some data(for doPost Call).
    5. Create an another class or function in Source Org to retrieve the call with endpoint URL.
    6. That's all.

    Note - Use Debug to find error.

    Thanks.

  • Avnish Yadav

    Member
    July 9, 2018 at 7:23 pm in reply to: What is the use of chatter in Salesforce?

    Chatter is an enterprise collaboration platform from Salesforce, a cloud-based customer relationship management (CRM) vendor.

    Chatter in salesforce allows you to collaborate the people with each other in your organization. You can connect with your coworkers and you can share information securely in real time.

    For more information, watch this demo video:-

    Link to video.

  • Avnish Yadav

    Member
    July 5, 2018 at 5:39 am in reply to: Why we avoid DML query in "before" trigger in Salesforce?

    Hello Chanchal,

    In Before trigger, the records are not commited in database so we can skip the DML as whatever value we give to records will naturally assigned to database.

    Thanks.

  • Hello Chanchal,

    Recursion in trigger means we are calling same method infinite times, this could happen when we have event 'update' in Account(let say) and in last we using DML query which Update in Account, therefore trigger undergoes to recursion.

    Avoiding a recrusion problem in trigger is easy. There are two methods we can use it to avoid recursion:-

    1. Create an Apex class with 'static' variable of boolean type and changes its value once update is done.
    2. Create an Apex class with 'static' variable of 'Set' type which store unique IDs of update records enter and check in trigger that if IDs exist in Set then don't do updates.

    Thanks.

  • Yes, a class can have multiple constructors, as long as their parameters are not the same. We can say that we can implement constructor overloading.

  • Avnish Yadav

    Member
    June 28, 2018 at 10:21 am in reply to: In Salesforce, what is Quick Fix in development mode?

    With development mode enabled, you can view and edit the content of a page by navigating to the URL of the page. All Visualforce pages display with the development mode footer at the bottom of the browser.

    Enable Development Mode:-

    1. Go to My Settings.

    2. Go to Personal --> Advanced User Details.

    3. Enable Development Mode Check box.

    Thanks.

Page 20 of 21