Forum Replies Created

Page 14 of 21
  • Avnish Yadav

    Member
    September 9, 2018 at 8:15 am in reply to: What is Apex crypto class and how to use it in salesforce?

    Hello,

    What is Apex Crypto Class?

    The Apex Crypto class provides a number of cryptographic functions for creating digests, message authentication codes, and signatures, as well as encrypting and decrypting information. This allows you to encrypt or decrypt information in Force.com or integrate with external services that require these functions.

    How to use Apex Crypto Class in Salesforce?

    The Crypto class provides the following functions to encrypt and decrypt using the AES algorithm:

    • encrypt()
    • decrypt()
    • encryptWithManagedIV()
    • decryptWithManagedIV()

    encrypt(algorithmName, privateKey, initializationVector, clearText)-Encrypts the Blob clearText using the specified algorithm, private key, and initialization vector. Use this method when you want to specify your own initialization vector.

    decrypt(algorithmName, privateKey, initializationVector, cipherText) - Decrypts the Blob cipherText using the specified algorithm, private key, and initialization vector. Use this method to decrypt blobs encrypted using a third party application or the encrypt method.

    encryptWithManagedIV(algorithmName, privateKey, clearText) -Encrypts the Blob clearText using the specified algorithm and private key. Use this method when you want Salesforce to generate the initialization vector for you.

    decryptWithManagedIV(algorithmName, privateKey, IVAndCipherText) -Decrypts the Blob IVAndCipherText using the specified algorithm and private key. Use this method to decrypt blobs encrypted using a third party application or the encryptWithManagedIV method.

    Hope this will help.

    Source - Salesforce developer Guide.

    Thanks.

     

  • Avnish Yadav

    Member
    September 9, 2018 at 8:05 am in reply to: change name of existing lightning component

    Hi,

    Easiest was to provide a new label for the component via the design file.

    <design:component label="A New Name"> </design:component>

    Hope this will help.

    Thanks.

  • Avnish Yadav

    Member
    September 7, 2018 at 1:19 pm in reply to: What is callback URL in Salesforce?

    Hello,

    A URL associated with your client application. In some contexts, this must be a real URL that the client’s Web browser is redirected to. In others, the URL isn’t used; however, between your client application and the server (the connected appdefinition) the value must be the same. For example, you may want to use a value that identifies the application, such as http://mycomponent.myapp.

    thanks.

  • Avnish Yadav

    Member
    September 7, 2018 at 1:05 pm in reply to: What is the Change Set in Salesforce?

    Hello,

    A changeset is deployed in a single transaction. If the deployment is unable to complete for any reason, the entire transaction is rolled back. After a deployment completes successfully, all changes are committed to your org and the deployment can’t be rolled back.
    Thanks.

  • Avnish Yadav

    Member
    September 7, 2018 at 12:51 pm in reply to: Why can we not perform callout in Salesforce after DML statement?

    Hello,

    The execution sequence of a DML operation is very well controlled and planned for in the context of the transaction. Allowing a callout in the middle usually (but not always), the code can be re-organized such that you are working with in-memory objects until after the call out, then execute the DML so we cannot perform callout in salesforce after DML statement.

    Thanks.

  • Avnish Yadav

    Member
    September 7, 2018 at 12:48 pm in reply to: What is Cross Filter in Salesforce?

    Hello,

    Cross filters are a great way to connect divided data within Salesforce reporting (and fantastic for deduplicating reports too).
    Salesforce define Cross Filters as..: “Use Cross Filters to include or exclude records in your report results based on related objects and their fields.”

    Thanks.

  • Avnish Yadav

    Member
    September 7, 2018 at 12:39 pm in reply to: Explain the difference between a custom button and a custom link.

    Hello,

    Custom Button and Custom Link defines the action that occurs when a user clicks a custom button or link. Custom buttons and links can streamline actions within Salesforce or integrate Salesforce data with external URLs, applications, or systems

    Difference -

    • Custom links can link to an external URL, such as www.google.com, a Visualforce page, or your company’s intranet.
    • 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.
    • Custom buttons can connect users to external applications, such as a web page that displays a map to a contact’s address.
      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

    Thanks.

  • Hello,

    No, it is not necessary, salesforce create a standard field named as Id.

    Thanks.

  • Avnish Yadav

    Member
    September 7, 2018 at 12:23 pm in reply to: What is analytical snapshot?

    Hi Anjali,

    Salesforce Help defines Analytic Snapshots as “allowing you to load data from a Custom Report to a Custom Object on a regularly scheduled basis.” This, in turn, allows you to create Reports and Dashboards based on the data in the Custom Object.

    Analytic Snapshots are comprised of three things:

    A source Report of type Tabular or Summary
    A Custom Object with fields matching the columns in the source Report
    An Analytic Snapshot definition, which maps fields and schedules the snapshot runs

     

    Hope this will help.

  • Hello,

    Yes, you need to make one field as an External id on your parent object.

    Thanks.

  • Avnish Yadav

    Member
    September 7, 2018 at 10:00 am in reply to: How is a site related to community in Salesforce?

    Hello,

    Community in Salesforce is sub-domain sites built with Community Builder (Lightning), standard Salesforce UI (Tabs), or custom Visualforce.

    Communities users with the “Create and Set Up Communities” permission are assigned the role of site administrator in a community’s Site.com site. To let Communities users without the permission edit the site, you must purchase and assign either a Site.com Publisher or a Site.com Contributor feature license, and assign a user role at the site level.

    Hope this will help.

  • Avnish Yadav

    Member
    September 7, 2018 at 6:51 am in reply to: What is a ‘Resource in Salesforce’?

    Hi Anurag,

    Resources or Static resources allow you to upload content that you can reference in a Visualforce page. Resources can be archives (such as .zip and .jar files), images, stylesheets, JavaScript, and other files.
    Static resources are managed and distributed by Lightning Platform, which acts as a content distribution network (CDN) for the files. Caching and distribution are handled automatically.

    Static resources are referenced using the $Resource global variable, which can be used directly by Visualforce, or used as a parameter to functions such as URLFOR().

  • Avnish Yadav

    Member
    September 7, 2018 at 6:00 am in reply to: What is Caching?

    Hi Anurag,

    In computing, a cache is a high-speed data storage layer which stores a subset of data, typically transient in nature, so that future requests for that data are served up faster than is possible by accessing the data’s primary storage location. Caching allows you to efficiently reuse previously retrieved or computed data.

    The data in a cache is generally stored in fast access hardware such as RAM (Random-access memory) and may also be used in correlation with a software component. A cache's primary purpose is to increase data retrieval performance by reducing the need to access the underlying slower storage layer.

    Hope this will help.

  • Avnish Yadav

    Member
    September 6, 2018 at 2:35 pm in reply to: What is Quantity Schedule in Salesforce?

    Hello Anjali,

    quantity schedule determines when a product is delivered.

    Quantity Schedule is used by the customer who pays amounts in installments.

    Hope this will help you.

  • Avnish Yadav

    Member
    September 6, 2018 at 9:57 am in reply to: partner relationship management (PRM)

    Hi Anjali,

    PRM defined as web-based applications that enable companies to customize and streamline administrative tasks in order to automate channel processes and program execution allowing for real-time information and collaboration. Partner relationship management (PRM) is a system of methodologies, strategies, software, and web-based capabilities that help a vendor to manage partner relationships. ... As a result, they commonly offer web-based self-service tools, information, and resources to partner resellers.

    Hope this will help you to understand what is PRM.

    Thanks.

     

  • Hello Anurag,

    If you select Disable Parallel Testing from Apex Test execution option then it will Always Run Synchronously.

    Disable Parallel Testing checkbox if checked, mandates the platform to run each test class one after the other. So, we can say that this setting is the test class specific. If the checkbox is unchecked, the platform will run the test classes in parallel.

    Always Run Asynchronously checkbox if checked, mandates the platform to run test methods in a single test class to run in parallel. If unchecked, the test methods will run one after the other.

    Hope this helps.

    Thanks!

  • Avnish Yadav

    Member
    September 5, 2018 at 2:46 pm in reply to: What is Payload?

    Hi Chanchal,

    Request body of every HTTP message includes request data called as Payload. This part of the message is of interest to the recipient.

    We can say that we send the payload in POST method but not in <GET> and <DELTE> methods.

    hope this will help you.

    Thanks.

  • Avnish Yadav

    Member
    September 5, 2018 at 2:44 pm in reply to: HTTP status codes

    Hi Chanchal,

    HTTP status codes basically are the representation of the status of the task that has been performed on the server, with the mode of some codes. Every code has their own meaning.

    Some of the HTTP status codes with their meaning are as follows:

    Code 200: This indicates success.
    Code 201: This indicates resource has been successfully created.
    Code 204: This indicates that there is no content in the response body.
    Code 404: This indicates that there is no method available.
    There are few more such codes that indicate the status.

    Thanks.

  • Avnish Yadav

    Member
    September 5, 2018 at 2:43 pm in reply to: Define managed sharing in APEX?

    Hi Prachi,

    Apex managed sharing provides developers with the ability to support an application’s particular sharing requirements programmatically via Apex code.

    Thanks.

  • Avnish Yadav

    Member
    September 5, 2018 at 2:36 pm in reply to: ‘Statelessness’ with respect to RESTful

    Hi Chanchal,

    Statelessness means that every HTTP request happens in complete isolation. When the client makes an HTTP request, it includes all information necessary for the server to fulfill that request. The server never relies on information from previous requests. If that information was important, the client would have sent it again in this request.

    Thanks.

  • Avnish Yadav

    Member
    September 5, 2018 at 2:24 pm in reply to: Explain the difference between CRM and PRM in Salesforce.

    Hello Anjali,

    CRM

    1. CRM stands for Customer Relationship Management.
    2. CRM application is built for direct sales.
    3. CRM applications help your internal teams manage interactions with potential and current customers.
    4. CRM applications compile data from every department, store it on a centralized customer record, and drive customer retention and future sales.

    PRM

    1. PRM stands for Partner Relationship Management.
    2. PRM applications are built for Indirect Sales.
    3. It is about maintaining a healthy relationship with the partners and ensuring that the trust between the company and the partner remains intact.
    4. Partner relationship management solutions only focus on the product and its Sales to ensure long-term profits.

    Thanks.

  • Avnish Yadav

    Member
    September 5, 2018 at 2:02 pm in reply to: Using return in Apex

    Hi Anurag,

    Yes, you can call the method from another class directly in it .

    Thanks.

  • Avnish Yadav

    Member
    September 5, 2018 at 1:35 pm in reply to: What is the difference between WhoId and WhatId on Task?

    Hi,

    WhoID in Salesforce refers to people things.  So that would be typically a Lead ID or a Contact ID. The WhoId represents a human such as a lead or a contact. WhoIds are polymorphic. Polymorphic means a WhoId is equivalent to a contact’s ID or a lead’s ID. The label is Name ID.

    WhatID in Salesforce refers to object type things.  That would typically be an Account ID or an Opportunity ID. The WhatId represents nonhuman objects such as accounts, opportunities, campaigns, cases, or custom objects. WhatIds are polymorphic. Polymorphic means a WhatId is equivalent to the ID of a related object. The label is Related To ID.

    Thanks.

  • Avnish Yadav

    Member
    September 5, 2018 at 10:20 am in reply to: What is Database.AllowsCallouts in Salesforce?

    Hi,

    To use HTTP Callouts in batch class we need to use Database.allowcallouts in an interface.

    global class BatchName implements Database.Batchable<sObject>,Database.AllowsCallouts {

    }

    Thanks.

  • Avnish Yadav

    Member
    September 4, 2018 at 11:02 am in reply to: How to generate the random string or random password using Apex?

    Hi,

    Hope this will help you.

    public static String generateRandomString(Integer len) {
    final String chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz';
    String randStr = '';
    while (randStr.length() < len) {
    Integer idx = Math.mod(Math.abs(Crypto.getRandomInteger()), chars.length());
    randStr += chars.substring(idx, idx+1);
    }
    return randStr;
    }
    Thanks.

Page 14 of 21