Forum Replies Created

Page 16 of 53
  • Parul

    Member
    September 22, 2018 at 5:23 pm in reply to: Is it possible to write the Apex code from user Interface in Salesforce?

    The Force.com IDE and Force.com Migration Tool are free resources provided by salesforce.com to support its users and partners, but are not considered part of our Services for purposes of the salesforce.com Master Subscription Agreement. It is possible to have a tight integration with the database and also deploy auto-generated controllers for database objects. Developers can use Apex codes to write own controllers. It is also possible to access AJAX components or create your own components.

  • Parul

    Member
    September 22, 2018 at 5:20 pm in reply to: What is the difference between ISNULL and ISBLANK?

    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 22, 2018 at 5:19 pm in reply to: Do governor limits apply to sandbox instances?

    Yes, governor limits apply to all instances

  • Parul

    Member
    September 22, 2018 at 5:17 pm in reply to: What are External ID fields used for in Salesforce?

    External ID
    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.

    Thanks

  • Parul

    Member
    September 22, 2018 at 5:17 pm in reply to: Can you give an example of a Salesforce API and it’s usage?

    Bulk – The Bulk API provides a programmatic access that lets you quickly load data into your Salesforce organisation.

    Streaming – The Streaming API can be used to receive notifications for changes to Salesforce data that match a SOQL query you define. Streaming API is useful when you want notifications to be pushed from the server to the client based on criteria that you define

  • Parul

    Member
    September 22, 2018 at 5:15 pm in reply to: What is a Connected App in Salesforce?

    To authenticate using OAuth, you must create a connected app that defines your application’s OAuth settings for the Salesforce organization.
    When you develop an external application that needs to authenticate with Salesforce, you need to define it as a new connected app within the Salesforce organization that informs Salesforce of this new authentication entry point.

    Hope this helps.

  • Parul

    Member
    September 22, 2018 at 5:14 pm in reply to: What is OAuth in Salesforce?

    OAuth (Open Authorization) is an open protocol that provides secure API authorization from applications in a simple and standardized way. OAuth can authorize access to resources without revealing user credentials to apps. Apps that use OAuth can also directly authenticate and access Salesforce resources without a user’s presence.

    The OAuth 2.0 authorization framework. APIs, such as the Salesforce REST and SOAP web service APIs or the Chatter REST API, can use OAuth 2.0 to authorize access to Salesforce resources.

    Thanks

     

  • Parul

    Member
    September 22, 2018 at 5:14 pm in reply to: Explain the use of an Outbound Message in Salesforce?

    Outbound Messaging is part of the workflow rule functionality in Salesforce. Workflow rules watch for specific kinds of field changes and trigger automatic Salesforce actions, such as sending email alerts, creating task records, or sending an outbound message to external services.

  • Parul

    Member
    September 22, 2018 at 5:12 pm in reply to: Can you explain the use of custom settings in Salesforce?

    Custom Settings are similar to custom objects and enable application developers to create custom sets of data, as well as create and associate custom data for an organization, profile, or specific user.

  • You have a roll up summary field only in case of Master-Detail relationship. Roll-up summary fields calculate values from a set of related records, such as those in a related list. You can create roll-up summary fields that automatically display a value on a master record based on the values of records in a detail record. These detail records must be directly related to the master through a master-detail relationship.

    The Roll up Summary field is basically of 4 types:

    Count
    Sum
    Min
    Max

  • Parul

    Member
    September 22, 2018 at 5:11 pm in reply to: What’s the difference between Record Types & Page Layouts in Salesforce?

    Page Layouts control the layout and organization of buttons, fields, s-controls, Visualforce, custom links, and related lists on object record pages. They also help determine which fields are visible, read only, and required. Use page layouts to customize the content of record pages for your users.

    Record Types let you offer different business processes, picklist values, and page layouts to different users. You might create record types to differentiate your regular sales deals from your professional services engagements, offering different picklist values for each.

     

    Thanks

  • Parul

    Member
    September 22, 2018 at 5:09 pm in reply to: What is a Salesforce Lightning Component?

    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.

  • Workflow enables you to set up workflow rules. A workflow rule identifies what kinds of record changes or additions trigger specified workflow actions, such as sending email alerts and updating record fields.

    Workflow rules and actions are associated with a specific object (and can cross objects only to update fields on a related master record).

    Visual Workflow:

    Visual Workflow enables you to create flows, which are triggered by users rather than events. Unlike Workflow, which always executes rules and actions behind the scenes, Visual Workflow offers screens for displaying and collecting information from the user running the flow.

    Flows aren’t tied to any one object. They can look up, create, update, and delete records for multiple objects.

    Process Builder:

    The Process Builder’s simple and powerful design allows you to:Create your processes using a convenient layout with point-and-click efficiency.
    Create your whole process in one place rather than using multiple workflow rules.
    Create processes by collaborating with different teams in your business.
    Stop using Apex code to automate simple tasks.

    Hope this helps you

    Thanks

  • Parul

    Member
    September 22, 2018 at 5:08 pm in reply to: How are sharing rules used in Salesforce?

    Adding more points:

    Sharing rules to extend sharingaccess to users in public groups or roles. As with role hierarchies, sharing rules can never be stricter than your org-wide default settings. They just allow greater access for particular users. You can share records owned by certain users or meeting certain criteria.

    Thanks

  • Parul

    Member
    September 22, 2018 at 5:07 pm in reply to: What are Governor Limits in Salesforce? Can you name 3 examples?

    Adding some points:

    In a SOQL query with parent-child relationship sub-queries, each parent-child relationship counts as an additional query. These types of queries have a limit of three times the number for top-level queries.

    The row counts from these relationship queries contribute to the row counts of the overall code execution.

    In addition to static SOQL statements, calls to the following methods count against the number of SOQL statements issued in a request.

    Database.countQuery
    Database.getQueryLocator
    Database.query
    From above statement i can clarify one point:

    For example your org contain  only 2 Account and each have 10 Contacts.

    If you execute this with sub Query like below

    Select Id, Name, (Select Id, Name from Contacts) From Account

    Then the total number of Query rows will be 22 (2+10+10).

    From above analogy we can understand like this

    If your org contain 40M accounts and each have 1 contact.

    Then in this scenario you can use sub query up to 25M only.

    Like this Select Id, Name, (Select Id, Name from Contacts) From Account limit 25M

    Thanks

  • As it turns out, 75% code coverage is required on an individual Apex class and an average of 75% of code coverage is required across the organization. This includes classes and triggers. But, you can deploy a Trigger with less than 75% coverage, for some unforgivable reason.

    Thanks

  • Parul

    Member
    September 22, 2018 at 5:05 pm in reply to: What are some Salesforce Apex best practices?

    "Apex Code Best Practices"
    Abstract.
    Best Practice #1: Bulkify your Code.
    Best Practice #2: Avoid SOQL Queries or DML statements inside FOR Loops.
    Best Practice #3: Bulkify your Helper Methods.
    Best Practice #4: Using Collections, Streamlining Queries, and Efficient For Loops.
    Best Practice #5: Streamlining Multiple Triggers on the Same Object.

  • The collection is the type variables which can store multiple numbers of records. It can increase and decrease dynamically.

    There are 3 types of collection
    List Collection
    Set Collection
    Map Collection

    A map is a collection of key-value pairs where each unique key maps to a single value. Keys and values can be any data type—primitive types, collections, sObjects, user-defined types, and built-in Apex types.

    Example:

    public static void beforeUpdateHandler(Map<Id, Account> oldMap, Map<Id, Account> newMap) {
        Account oldAcc;
        Account newAcc;
        for (Id accId : oldMap.keySet()) {
            oldAcc = oldMap.get(accId);
            newAcc = newMap.get(accId);
            if (oldAcc.MyCustomField__c != newAcc.MyCustomField__c) {
                System.debug(‘MyCustomField__c has changed!’);
            }
        }
    }

    Thanks

  • Parul

    Member
    September 22, 2018 at 5:03 pm in reply to: What is Visualforce in Salesforce?

    Visualforce and Lightning both offer ways to design and create custom interfaces for Salesforce.
    Visualforce was designed to follow a Page-Centric model. This means that the intent of Visualforce was to create something that was your full page interface with Salesforce. When the user needed to perform some kind of operation, like Save a record, it would send that request to the Salesforce servers and then reload the entire page with the new state of the UI. All backend processing is done with Apex Code on the Server-Side. You have the option to inject JavaScript into the mix to handle some of the Client-Side processing, but it isn't the default interaction methodology. Visualforce was also primarily built for Desktop. When Visualforce was first launched back in 2008 the iPhone had been out for about a year. The concept of designing things "mobile first" hadn't yet been realized, this would come a few years later.
    Visualforce also uses an HTML-like markup language for designing the pages and Apex code to handle the database operations. Here is a breakdown of what you have with Visualforce pages:
    Visualforce Page - HTML-like markup language used to design the layout of the page.
    Standard Or Custom Controller - Apex Code to handle Server-Side operations executed from the Visualforce page (EX: CRUD operations).
    Optional: CSS Styling - Style your Visualforce page to look a specific way within the header or by file reference.
    Optional: JavaScript - Used to handle Client-Side processing or to be coupled with CSS for a cosmetic revamp of the UI.
    Optional: Apex Extensions - These are used to perform logical operations that are not housed within the standard or custom controller.

  • Parul

    Member
    September 22, 2018 at 5:02 pm in reply to: What is a Static Resource in Salesforce?

    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().

  • Parul

    Member
    September 22, 2018 at 5:02 pm in reply to: What is the use of the Static Resources in Salesforce?

    Static resources allow you to upload content that you can reference in a Visualforce page, including archives (such as .zip and .jar files), images, style sheets, JavaScript, and other files.

  • If your Visualforce page doesn’t need a custom controller, you could be able to create it on production, however, if there is a apex class invloved – you will have to make the changes and then deploy on production.

    Thanks.

  • Parul

    Member
    September 22, 2018 at 4:57 pm in reply to: What is Salesforce Apex?

    Apex Transactions ensure the integrity of data. Apex code runs as part of atomic transactions. Governor execution limits ensure the efficient use of resources on the Lightning Platform multitenant platform.

    Because Apex runs in a multitenant environment, the Apex runtime engine strictly enforces limits to ensure that runaway Apex code or processes don’t monopolize shared resources. If some Apex code exceeds a limit, the associated governor issues a runtime exception that cannot be handled.

  • Parul

    Member
    September 22, 2018 at 4:56 pm in reply to: How are bucket fields used in Salesforce?

    Bucket field in Salesforce Reports is an incredibly powerful functionality used to quickly categorize values for a field in a report without the need to have a custom formula field at the object level. When you create a bucket field in Salesforce, you define multiple categories into groups depending on the record values, this bucket field will not affect other Salesforce reports. Bucket fields in Salesforce are available in Tabular reports, Summary Reports and Matrix reports. Joined Reports does not support Bucket fields.

  • These allow you to package up components and then deploying them to another Salesforce Org. There are various other methods including ANT MIgration Tool, Force.com IDE and Unmanaged packages. But Changeset is mostly used for deployment.

    Thanks

Page 16 of 53