Forum Replies Created

Page 30 of 53
  • Parul

    Member
    September 19, 2018 at 5:29 pm in reply to: What is the difference between Trigger and Workflow in salesforce?

    Adding some points:

    Workflow

    Workflow is automated process that fired an action based on Evaluation criteria and rule criteria.

    We can access a workflow across the object.

    We cannot perform DML operation on workflow

    We cannot query from database

    Trigger

    Trigger is a piece of code that executes before or after a record is inserted or updated.

    We can access the trigger across the object and related to that objects

    We can use 20 DML operations in one trigger.

    We can use 20 SOQL’s from data base in one trigger.

     

    Thanks

  • Parul

    Member
    September 19, 2018 at 5:22 pm in reply to: Difference between ISBLANK and ISNULL in Salesforce

    HI

    Adding some points more:

    It is preferred to use the ISBLANK Salesforce function instead of ISNULL Salesforce function in new Formulas. ISBLANK() has the same functionality as ISNULL(), but also supports text fields. Salesforce will continue to support ISNULL, so you do not need to change any existing formulas.

    ISNULL():

    Text fields are never null, so using ISNULL() with a text field always returns false. Empty date and date/time fields always return true when referenced in ISNULL() functions.

    ISBLANK():

    If you use ISBLANK() with a numeric field, the function only returns TRUE if the field has no value and is not configured to treat blank fields as zeroes.

    For example, the formula field IF(ISNULL(new__c) 1, 0) is always zero regardless of the value in the New field. For text fields, use the ISBLANK Salesforce function instead.

     

    Thanks

  • Parul

    Member
    September 19, 2018 at 5:22 pm in reply to: How ISBLANK() is different from ISNULL() in Salesforce?

    Hi

    Adding some points

    Use ISBLANK instead of ISNULL in new formulas. ISBLANK has the same functionality as ISNULL, but also supports text fields. Salesforce will continue to support ISNULL, so you do not need to change any existing formulas.
    A field is not empty if it contains a character, blank space, or zero. For example, a field that contains a space inserted with the spacebar is not empty.
    Use the BLANKVALUE function to return a specified string if the field does not have a value; use the ISBLANKfunction if you only want to check if the field has a value.
    If you use this function with a numeric field, the function only returns TRUE if the field has no value and is not.

    Thanks

  • Parul

    Member
    September 19, 2018 at 5:19 pm in reply to: JSON vs XML in Salesforce

    Hi

    Adding some points:

    Extensible Markup Language (XML) used to be the only choice for open data interchange. However, developments in open data sharing have introduced more options for developers, each with their own set of benefits. While XML may be a widespread method for API integration, that doesn't mean it's the best choice for your project.

    JavaScript Object Notation (JSON) is one alternative that's attracting a lot of attention. The first thing that comes to mind when you mention JSON to developers is that it's lightweight compared to other open data interchange options. However, that's not the only reason you should use it for your next RESTful API integration. Consider these features.

     

    Thanks

  • Add some ex:

    public class thecontrollerTests {

    public static testMethod void testMyController() {
    PageReference pageRef = Page.success;//Observe how we set the Page here
    Test.setCurrentPage(pageRef);//Applying page context here

     

    Thanks

  • Parul

    Member
    September 19, 2018 at 5:09 pm in reply to: What is SLDS in Salesforce Lightning? What is the use of this?

    Hi

     

    Salesforce introduced Lightning Data Service in Winter 17 as a pilot program. Use Lightning Data Service to 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.

    It’s built on highly efficient local storage that’s shared across all components that use it. Records loaded in Lightning Data Service are cached and shared across components. Components accessing the same record see significant performance improvements, because a record is loaded only once, no matter how many components are using it. Shared records also improve user interface consistency. When one component updates a record, the other components using it are notified, and in most cases, refresh automatically.

    Advantages of Lightning Data Service

    No need to write any Apex class
    No need to write SOQL
    Field level security and record sharing is inbuilt
    CRUD operation supported
    Shared cache is used by all standard and custom components
    Auto notification to all components
    Supports offline in Salesforce 1

    THanks.

  • Parul

    Member
    September 19, 2018 at 5:08 pm in reply to: What are bindings in Salesforce Visualforce? How to use them?

    Hi

    Data bindings refer to the data set in the controller.
    Action bindings refer to action methods in the controller.
    Component bindings refer to other Visualforce components

     

    Thanks

  • Hi

    Data bindings refer to the binding dataset to your page from the controller. Action bindings refer to the binding action methods to your page defined in the controller. Component bindings refer to the binding of other Visualforce components with your page.

    Thanks

  • Data bindings refer to the data set in the controller.
    Action bindings refer to action methods in the controller.
    Component bindings refer to other Visualforce components

    Data bindings refer to the binding dataset to your page from the controller. Action bindings refer to the binding action methods to your page defined in the controller. Component bindings refer to the binding of other Visualforce components with your page.

    Thanks

  • Hi

    Easily automate complex business processes with the Salesforce Process Builder. Without any code, identify the process criteria and automatically update or create new records, emails, and tasks or submit approval requests in a few simple steps. Visualise the entire process in one place to design and collaborate directly with line of business owners.

    Thanks

  • Hi

    S-Controls allow Salesforce developers to leverage HTML and Javascript to create custom pages and UI components.  These customizations are used when an admin needs to work with a small set of records or fields, or if he or she needs to link to an external server.

    S-Controls enable developers to add their own functionality to a Salesforce org.  Among some of the possibilities, you can integrate hosted apps, or extend the Salesforce UI.

     

    Visualforce: Visualforce is the new force.com technology that lets you create custom user interfaces for your Force.com applications. With Visualforce, you can reuse many of the components found in existing Salesforce interfaces or create your own. Moreover, the interfaces can also tap into custom business logic.

     

    Thanks

  • Parul

    Member
    September 19, 2018 at 1:56 pm in reply to: What is WSDL in Salesforce?

    hi

    Add some point:

    Salesforce's WSDL allows you to easily integrate salesforce.com with your applications, and to build new applications that work with salesforce.com. To get started, download a WSDL file to a place accessible to your development environment.

     

    Thanks

  • Parul

    Member
    September 19, 2018 at 1:55 pm in reply to: What are the External Ids in salesforce?

    Hi,

    This is a field that usually references an ID from another (external) system. For instance, if the customer has an Oracle Financials system that they will be linking with Salesforce, it may be easier for them to be able to refer to the Oracle ID of account records from within Salesforce. So they would create an external ID in Salesforce and they would load the Oracle ID into that field for each account. They can then refer to that ID field, rather than the Salesforce id.

    Additionally, if you have an external ID field, the field becomes searchable in the sidebar search. You also can use the upsert API call with the external ID to refer to records.

    You can have multiple records with the same external ID (though it is not recommended, as it will defeat the purpose of the external id)

    Thanks

  • Parul

    Member
    September 19, 2018 at 1:54 pm in reply to: What is sharing class in Salesforce?

    Adding some point:

    When you use 'with sharing'(with Security Settings enforced) keyword the Apex code runs in User Context, i.e all the sharing rules for the current user are taken into account.

    With Sharing:

    Let's say you're trying to perform an update as the user A.Now If user A cannot edit record R1, then an error will occur. If user A cannot see record R1, they cannot query that record. Use this mode when for pages that should respect sharing settings, or any other time you might want to enforce the rules.

     

    Thanks

  • Parul

    Member
    September 19, 2018 at 1:33 pm in reply to: What is AppExchange directory ?

    Hi

    The AppExchange is the world’s first on-demand application-sharing service. It provides a way to browse, test drive, share and install applications developed on Salesforce’s on-demand AppExchange platform. Partners, developers, and anyone else who chooses to participate can offer their Apps on the AppExchange directory. This directory gives Salesforce users an easy way to find and install applications to expand their use of the AppExchange platform to new areas of customer relationship management (CRM) and beyond.

    Thanks

  • Parul

    Member
    September 19, 2018 at 1:29 pm in reply to: Define Javascript Remoting for Salesforce Apex Controllers.

    Hi

    JavaScript remoting is a tool that front-end developers can use to make an AJAX request from a Visualforce page directly to an Apex controller. JavaScript remoting allows you to run asynchronous actions by decoupling the page from the controller and to perform tasks on the page without having to reload the entire page.

    JavaScript code can be written in a Visualforce page and can be included in a Visualforce page by using a static resource within the script.

    Example: Code snippet

    <script type=”text/javascript”>
    function getRemoteAccount() {
    var accountName = document.getElementById(‘acctSearch’).value;
    Visualforce.remoting.Manager.invokeAction(
    ‘{!$RemoteAction.MyController.getAccount}’,
    accountName,
    function(result, event){
    if (event.status) {
    // Code for callback handling
    }
    }, {escape: true}
    );
    }
    </script>

     

    Controller:

    @RemoteAction
    global static String getItemId(String objectName) { … }

    Thanks

  • Parul

    Member
    September 19, 2018 at 1:28 pm in reply to: SOSL Statements In Salesforce Apex

    Hi

    SOSL Statements
    SOSL statements evaluate to a list of lists of sObjects, where each list contains the search results for a particular sObject type. The result lists are always returned in the same order as they were specified in the SOSL query. If a SOSL query does not return any records for a specified sObject type, the search results include an empty list for that sObject.

    For example, you can return a list of accounts, contacts, opportunities, and leads that begin with the phrase map:

    List<List<SObject>> searchList = [FIND 'map*' IN ALL FIELDS RETURNING Account (Id, Name), Contact, Opportunity, Lead];

    Hope this will help you.

    THANKS

  • Parul

    Member
    September 19, 2018 at 1:25 pm in reply to: What are Queues in Salesforce?

    Hi

    Adding some point:

    Queues are groups of users who can own records. All records in Salesforce must have an owner. An owner is a single entity, queues allow for certain objects to have groups of users own the record.

    Thanks

  • Parul

    Member
    September 19, 2018 at 1:22 pm in reply to: MIXED-DML-OPERATION

    Hi

    If we perform DML operation on standard/custom object and global objects(User, UserRole, Group, GroupMember, Permission Set, etc...) in same transaction this error will come.

     

    Thanks

     

     

  • Parul

    Member
    September 19, 2018 at 1:14 pm in reply to: What is field tracking in Salesforce?

    Field Tracking- We can select certain fields to track and display the field history in the History related list of an object. The field history data is retained for up to 18 months. Field history tracking can be done for both standards as well as custom objects.

    With this method we can track the changes happens in the field.

    First, we need to enable  Enable feed for standard object enable for standard and custom object in Salesforce.

    Thanks

  • Parul

    Member
    September 19, 2018 at 1:10 pm in reply to: Difference Between Field History Tracking And Feed Tracking in Salesforce

    Hi

    Field Tracking- We can select certain fields to track and display the field history in the History related list of an object. The field history data is retained for up to 18 months. Field history tracking can be done for both standards as well as custom objects.

     

    Thanks

  • Hi

    Adding some point:

    You can

    Database.executeBatch with the instance:

    batchExample be = new batchExample();
    database.executeBatch(new BatchClassName, size);

    With this limit we can set the limit of Batch inside Execute().

     

    Thanks

  • Parul

    Member
    September 19, 2018 at 1:01 pm in reply to: How many controller extensions we can use in salesforce?

    Hi

    Multiple controller extension we can use in single page using Comma-seperated list. Currently there is no limit on the number of extensions you can have on a VF Controller.

     

    Thanks

  • Parul

    Member
    September 19, 2018 at 12:44 pm in reply to: Difference between 'div' and 'span' tags in Salesforce

    Adding some point:

    The div is a block level, meaning it's on its own separate line.

    It is better referred for a block of content having different nested elements,

    span is inline, so it's a child of another block level element.

    spen is nothing but an empty element,

     

    Thanks

  • Parul

    Member
    September 19, 2018 at 12:32 pm in reply to: What are CRUD/FLS issues in Salesforce? How can it be resolved?

    Hi

    Field Level Security or FLS gives you the provision to restrict particular individuals from accessing super sensitive and confidential information that are located in the records that they can see. FLS security is configured similar to CRUD but it allows the administrators to be able to pre-define the profiles that can see as well as write to most of the fields of the custom and standard objects.

     

     

    Thanks

Page 30 of 53