Forum Replies Created

Page 7 of 12
  • Hi Yogesh,

    Yes, Lightning components can be integrated with any third-party framework like Angular.

  • Hi Prachi,

    Yes there is a limit on the number of callout per transaction. Total number of callouts (HTTP requests or Web services calls) in a transaction is 100

  • Nikita

    Member
    September 23, 2019 at 6:48 am in reply to: Problem in batch class in salesforce

     

    Hi Deepak,

    Yes, it is necessary to cover the execute method of a batch class in the test class. If start is returning a batch ( which is rows returned by the query locator) then only it will go in the execute method.

  • Nikita

    Member
    September 23, 2019 at 6:44 am in reply to: How can we create dependent picklist in salesforce?

    Hi Prachi,

    A dependent picklist is a custom or multi-select picklist for which the valid values depend on the value of another field, called the controlling field. Controlling fields can be any picklist (with at least one and fewer than 300 values) or checkbox field on the same record.

    To create it use following

    1. From the management settings for the object you want to add a field to, go to Fields.Custom task and event fields are accessible from the object management settings for Activities.
    2. Click Field Dependencies.
    3. Click New.
    4. Choose a controlling field and dependent field.
    5. Click Continue.
    6. Use the field dependency matrix to specify the dependent picklist values that are available when a user selects each controlling field value.
    7. Optionally, click Preview to test your selections. If your organization uses record types, choose a record type to test how it affects your controlling and dependent picklist values. The record type controls what values are available in the controlling field. The record type and the controlling field together determine what values are available in the dependent picklist. For example, a dependent value is only available if it is available in the selected record type and the selected controlling value.

     

  • Hi Prachi,

    If the Default value of the field is not getting populated by Apex then we have to use “Dynamic Apex”.  Create instance of object from sObjectType like shown below:

    Training__c tr= (Training__c) Training__c.sObjectType.newSObject(null, true);
    
    //Check if Value in field "Trainer__c" is default value
    System.assertEquals('Jitendra', tr.Trainer__c);

     

  • Nikita

    Member
    September 20, 2019 at 12:36 pm in reply to: Explain how can we integrate Google Calender with the Salesforce Calender?

    Hi Laveena,

    You can use this Google Data toolkit to implement a custom integration between Google Calendar and Salesforce.

  • Hi Laveena,

    You can use Trigger.new to access all non-null fields of the object on which the trigger is defined. You have to perform an explicit SOQL query to access any fields on associated parent or child records.

    For example, if the trigger is defined on Contact, you can only access the Id of the parent Account record (via AccountId) in Trigger.new. You’d need to perform a separate SOQL query to access any other field on the parent Account record (e.g. Description, Industry, etc.).

  • Nikita

    Member
    September 20, 2019 at 12:31 pm in reply to: How to enable truncate custom object feature in Salesforce ?

    Hi Prachi,

    You can truncate the custom object as following

    • Go to the object management settings for custom objects.
    • Click an object name to go to the object’s detail page, and then click Truncate.
    • In the Confirm Custom Object Truncate window, review the warning and then enter the name of the object to truncate in the empty field.
    • Click Truncate.
  • Nikita

    Member
    September 20, 2019 at 5:59 am in reply to: What is Partition class in salesforce?

    Hi Piyush,

    A Partition class is a Base class of Cache.OrgPartition and Cache.SessionPartition. It uses the subclasses to manage the cache partition for org caches and session caches.

  • Nikita

    Member
    September 20, 2019 at 5:54 am in reply to: When the InvalidCacheBuilder Exception will be raise in Salesforce?

    Hi Piyush,

    InvalidCacheBuilder Exception is raised when a get(CacheBuilder cb, String key), remove(CacheBuilder cb, String key), or validateCacheBuilder(CacheBuilder cb)method is called but the cb parameter is a class that does not implement the Cache.CacheBuilder interface.

  • Nikita

    Member
    September 19, 2019 at 12:40 pm in reply to: What is S-Control in salesforce?

    Hi Laveena,

    S-controls provide a flexible, open means of extending the Salesforce user interface, including the ability to create and display your own custom data forms. An s-control can contain any type of content that you can display or run in a browser, for example, a Java applet, an ActiveX control, an Excel file, or a custom HTML Web form.

    Use s-controls to add your own functionality to your Salesforce organization. Whether you are integrating a hosted application of your own or are extending your current Salesforce user interface, use s-controls to store your code or refer to code elsewhere.

  • Nikita

    Member
    September 19, 2019 at 12:37 pm in reply to: What is External lookup in salesforce?

    Hi Laveena,

    An external lookup relationship links a child standard, custom, or external object to a parent external object.

    External objects are similar to custom objects, except that they map to data located outside Salesforce. Each external object relies on an external data source definition to connect with the data outside Salesforce. Each external object definition maps to a table that contains the data, and the object fields map to accessible table columns. The data in the external table can be searched and referenced in Salesforce using custom tabs and federated search.

     

  • Nikita

    Member
    September 19, 2019 at 12:33 pm in reply to: Explain the use of Database.Stateful in salesforce?

    Hi Laveena,

    Each execution of a batch Apex job is considered a discrete transaction. For example, a batch Apex job that contains 1,000 records and is executed without the optional scope parameter is considered five transactions of 200 records each.
    If you specify Database.Stateful in the class definition, you can maintain state across these transactions. When using Database.Stateful, only instance member variables retain their values between transactions. Static member variables don’t retain their values and are reset between transactions. Maintaining state is useful for counting or summarizing records as they’re processed

    For example, suppose your job processed opportunity records. You could define a method in execute to aggregate totals of the opportunity amounts as they were processed.

    Let's take an example here

    global class SummarizeAccountTotal implements 
        Database.Batchable<sObject>, Database.Stateful{
    
       global final String Query;
       global integer Summary;
      
       global SummarizeAccountTotal(String q){Query=q;
         Summary = 0;
       }
    
       global Database.QueryLocator start(Database.BatchableContext BC){
          return Database.getQueryLocator(query);
       }
       
       global void execute(
                    Database.BatchableContext BC, 
                    List<sObject> scope){
          for(sObject s : scope){
             Summary = Integer.valueOf(s.get('total__c'))+Summary;
          }
       }
    
    global void finish(Database.BatchableContext BC){
       }
    }

     

  • Nikita

    Member
    September 19, 2019 at 6:16 am in reply to: Deactivate Users

    Hi David,

    You can Deactivate user using workflow rule as following:

     

  • Nikita

    Member
    September 18, 2019 at 8:58 am in reply to: What is AppExchange directory in salesforce?

    Hi Laveen,

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

  • Nikita

    Member
    September 18, 2019 at 7:04 am in reply to: What is a data-set attribute?

    Hi Saddam,

    When you load data into Analytics, you load it into datasets. A dataset is a collection of related data that is stored in a denormalized, yet highly compressed form. You can prepare data in a dataset to combine data from different sources, calculate new values, and clean data.Analytics applies one of the following types to each dataset field:

    • Date
    • Dimension
    • Measure
  • Nikita

    Member
    September 18, 2019 at 6:55 am in reply to: How to get access token of an org in salesforce?

    Hi Deepak,

    In Salesforce Access token is its security token.

    To get the security token for your Salesforce account

    1. In the mailbox for the email address associated with the Salesforce account to be used by the Coveo connector, look for the latest email message received from [email protected] with the subject: salesforce.com security token confirmation.
    2. If you cannot find the latest email with a security token, reset the security token:
      • Log in to Salesforce using the Salesforce account to be used by the Coveo connector.
      • In the User Menu, select Setup.
      • In the menu on the left, under Personal Setup, expand My Personal Information, and then click Reset My Security Token.
      • Follow onscreen instructions.
    3. A new email message will be sent. Open the message, and then copy the Security Token value.

     

  • Nikita

    Member
    September 17, 2019 at 1:19 pm in reply to: What is Bucket Field in salesforce ?

    Hi Hariom,

    Bucketing lets you quickly categorize report records without creating a formula or a custom field. When you create a bucket field, you define multiple categories (buckets) used to group report values.

    for eg, if you have a status field on Leads with 10 picklist values, you could group them into 2 or three categories or ‘buckets’ such as “Cold” “Warm” and “Hot”

  • Hi Hariom,

    recordId is an Attribute of lightning:recordViewForm component. It is of String type. It is a required attribute for this component.

    Basically recordId is the ID of the record to be displayed.

  • Nikita

    Member
    September 13, 2019 at 7:58 am in reply to: What is Blob in Apex in salesforce ?

    Hi Hariom,

    Blob is a collection of binary data stored as a single object. You can convert this data type to String or from String using the toString and valueOf methods, respectively. Blobs can be accepted as Web service arguments, stored in a document (the body of a document is a Blob), or sent as attachments.

  • Nikita

    Member
    September 13, 2019 at 5:58 am in reply to: What is the use of writing sharing rules?

    Hi Piyush,

    Sharing rules are used to extend sharing access to users in public groups, roles, or territories. Sharing rules give particular users greater access by making automatic exceptions to your org-wide sharing settings. Basically sharing rules are written to give edit access (public read and write) or public read-only access to certain individuals in Salesforce Org.

  • Nikita

    Member
    September 13, 2019 at 5:53 am in reply to: What is skinny table in salesforce?

    Hi Piyush,

    Salesforce can create skinny tables to contain frequently used fields and to avoid joins. This can improve the performance of certain read-only operations. Skinny tables are kept in sync with their source tables when the source tables are modified.

    Skinny tables can contain the following types of fields.

    • Checkbox
    • Date
    • Date and time
    • Email
    • Number
    • Percent
    • Phone
    • Picklist (multi-select)
    • Text
    • Text area
    • Text area (long)
    • URL
  • Nikita

    Member
    September 13, 2019 at 5:48 am in reply to: What is Email services heap size in salesforce?

    Hi Piyush,

    Email services heap size in salesforce is 36 MB.

  • Nikita

    Member
    September 13, 2019 at 5:42 am in reply to: How to access filed token in salesforce?

    Hi Piyush,

    To access the token for a field, use one of the following methods:

    Access the static member variable name of an sObject static type, for example, Account.Name.
    Call the getSObjectField method on a field describe result.
    The field token uses the data type Schema.SObjectField.

    In the following example, the field token is returned for the Account object's Description field:

    Schema.SObjectField fieldToken = Account.Description;
    

    In the following example, the field token is returned from the field describe result:

    // Get the describe result for the Name field on the Account object
    Schema.DescribeFieldResult dfr = Schema.sObjectType.Account.fields.Name;
    
    // Verify that the field token is the token for the Name field on an Account object
    System.assert(dfr.getSObjectField() == Account.Name);
    
    // Get the describe result from the token
    dfr = dfr.getSObjectField().getDescribe();

     

  • Nikita

    Member
    September 12, 2019 at 7:58 am in reply to: Explain Junction relationship (Many to Many ) in detail in salesforce.

    Hi Laveena,

    Salesforce supports 2 kinds of relationships like Master Detail and Lookup. They are both one-to-many relationship, and they are both defined from the many-to-one side, that is from a child to a parent. They can be made one-to-one relationship by adding validation rules, or maybe triggers to enforce the one-to-one nature, i.e. only one child is allowed.

    Junction objects are used to create many to many relationships between objects. If you take the Recruiting application example, you can see that a Position can be linked to many Candidates, and a Candidate can apply for different Positions. To create this data model you need a third object "Job Application" that links the 2.

    So you'd create a lookup field for both Position and Candidate object on the "Job Application" object. This will establish many to many relationships between Position and Candidate via the "Job Application" object known as the junction object.

Page 7 of 12