Forum Replies Created

Page 3 of 3
  • Following types of Email templates can be created in salesforce.

    1. Text

    2. HTML with Classic Letterhead

    3. Custom

    4. Visualforce

    All of these email templates can include text, merge fields, and attached files.

     

  • Hariom Chaudhary

    Member
    August 12, 2019 at 7:00 am in reply to: What is the use of recordUpdated event in force:recordData?

    Use of force:record Data-

    It is used to handle the recordUpdated event. You can handle record loaded, updated, and deleted changes, applying different actions to each change type.

    For more infor visit:

    https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/data_service_handling_record_change.htm

  • Hariom Chaudhary

    Member
    August 9, 2019 at 11:24 am in reply to: What is the use of testSetup in Salesforce?

    @testSetup ( Set Up Test Data for an Entire Test Class )Use test setup methods (methods that are annotated with @testSetup) to create test records once and then access them in every test method in the test class. Test setup methods can be time-saving when you need to create reference or prerequisite data for all test methods, or a common set of records that all test methods operate on.

    Fore more information visit:

    https://developer.salesforce.com/forums/?id=9060G0000005X0yQAE

  • I think this is because the user is assigned as a sales user. If the user is  provides with service permission, Service option will be visible.

    There may be any other reason as well.

  • Hariom Chaudhary

    Member
    August 9, 2019 at 9:40 am in reply to: What is System.runAs() Method in Salesforce?

    Generally, all Apex code runs in system mode, where the permissions and record sharing of the current user are not taken into account. The system method runAs enables you to write test methods that change the user context to an existing user or a new user so that the user’s record sharing is enforced. The runAs method doesn’t enforce user permissions or field-level permissions, only record sharing.

    You can use runAs only in test methods. The original system context is started again after all runAs test methods complete.

    The runAs method ignores user license limits. You can create new users with runAs even if your organization has no additional user licenses.

    For more information visit :

    https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_testing_tools_runas.htm

  • Hariom Chaudhary

    Member
    August 7, 2019 at 1:02 pm in reply to: Explain IoT Insights Component in Salesforce

    Make your Salesforce IoT data available to your users throughout Salesforce, giving them more information to serve customers. The IoT Insights Lightning standard component enhances your CRM data by showing Salesforce IoT information alongside it. You can include the component on Salesforce Lightning record pages, such as cases, work orders, and assets.

    But for this you must have salesforce IOT license.

    You can Enable it.-

    From Setup, enter IoT in the Quick Find box, then select Get Started. In Enable Salesforce IoT, click Enable. In Enable IoT Insights, click Enable.

  • Hariom Chaudhary

    Member
    August 5, 2019 at 11:58 am in reply to: How can we Schedule batch apex in Salesforce?

    How to create Apex Batch Class:

    Create an apex class which implements Database.Batchable interface and class must be globle like mentioned below.
    global class batchExample implements Database.Batchable
    {

    }

    It is used to run large jobs (think thousands or millions of records!) that would exceed normal processing limits.

    1- We can fetch 200 records in execution.
    2-The main diff between Batch apex and scheduled apex is No of Records.We can only have 100
    scheduled Apex jobs at one time, while for batch apex the limit is 200.
    3-When we want to run a piece apex code at some particular time within a period of time.Schedule
    apex is class which runs at a regular interval of time. To schedule an apex class we need to
    implement an interface Schedulable.

  • Hariom Chaudhary

    Member
    August 5, 2019 at 8:09 am in reply to: Some Queries about Batch APEX in Salesforce

    1-In following ways we can Schedule Batches-

    a. Salesforce User Iinterface > Classes > Schedule Apex.
    b. Custom Solution via some custom visualforce interface.
    c. Called via Apex/DML.

    2- we can fetch 200 records.

    3- To handle large number of data we have to use batch apex
    When you want to run a piece apex code at some particular time within a period of time, we use schedule apex.

Page 3 of 3