Forum Replies Created

Viewing 20 posts - 1 through 20 (of 71 total)
  • #69755
    Forcetalks

    The Test.isRunningTest() method is used to identify, if the piece of code being executed is invoked from a Test class execution or from other artefacts such as a Trigger, Bacth Job etc. Returns true if the code being executed is invoked from a test class otherwise returns a false.

    This method usually comes in handy, when you intend to conditionally restrict execution of certain Apex code blocks, based on whether they are being invoked from a test class or not. A practical example would be that performing web service callouts in Apex are not supported within Test Code. Hence you could use the Test.isRunningTest() to conditionally identify and route the execution of a code block that calls the Test Mock framework to simulate a mock, callout reponse.

    VIEW CONVERSATION
    #69754
    Forcetalks

    As per my knowledge 3 type of assert method is generally used in System Class in Salesforce.

    These are as follows:

    assert(condition, msg)
    Asserts that the specified condition is true. If it is not, a fatal error is returned that causes code execution to halt.
    assertEquals(expected, actual, msg)
    Asserts that the first two arguments are the same. If they are not, a fatal error is returned that causes code execution to halt.
    assertNotEquals(expected, actual, msg)
    Asserts that the first two arguments are different. If they are the same, a fatal error is returned that causes code execution to halt.

    VIEW CONVERSATION
    #69753
    Forcetalks

    The startTest method marks the point in your test code when your test actually begins. Each test method is allowed to call this method only once. All of the code before this method should be used to initialize variables, populate data structures, and so on, allowing you to set up everything you need to run your test. Any code that executes after the call tostartTest and before stopTest is assigned a new set of governor limits.
    So, every time you use the test.start and test.stop in your test method, new set of governor limits are assigned to the code executing between them. If you don’t use them in your testmethods there may be chances of your test methods over shooting the set governor limits.

    VIEW CONVERSATION
    #69752
    Forcetalks

    LeadConvert Class Contains information used for lead conversion.The convertLead Database method converts a lead into an account and contact, as well as (optionally) an opportunity. The convertLead takes an instance of the Database.LeadConvert class as a parameter. Create an instance of this class and set the information required for conversion, such as setting the lead, and destination account and contact.

    VIEW CONVERSATION
    #69751
    Forcetalks

    Methods defined with the @testSetup annotation are used for creating common test records that are available for all test methods in the class.
    Test setup methods are defined in a test class, take no arguments, and return no value.If a test class contains a test setup method, the testing framework executes the test setup method first, before any test method in the class. Records that are created in a test setup method are available to all test methods in the test class and are rolled back at the end of test class execution. If a test method changes those records, such as record field updates or record deletions, those changes are rolled back after each test method finishes execution. The next executing test method gets access to the original unmodified state of those records.

    VIEW CONVERSATION
    #69683
    Forcetalks

    This popular CRM platform comes with some upfront costs. Salesforce can cost from $25 per user per month, to over $300 — their monthly fee will vary depending on the needs and scale of each business. The smartest move you can make is to get a direct price quote for how much Salesforce (or rival suites) will cost for your business. You can do this by filling out our simple CRM software quotes form – it only takes a minute to put in a couple of details about your requirements.

    In the guide below, we take a look at Salesforce’s costs to help you figure out if this is the right CRM system for your company.

    In This Guide:

    Salesforce Pricing Plans — Salesforce offers multiple services, with four plan tiers for each.
    Salesforce Cost Per User — The CRM’s scalable pricing works on a per-user basis.
    Salesforce Sales Cloud Costs— This platform helps sales teams manage a daily workflow.
    Salesforce Service Cloud Costs— This platform offers a range of customer service tools.
    Salesforce Marketing Cloud Costs— This marketing platform layers on top of other Salesforce clouds.
    Salesforce Commerce Cloud Costs— This platform’s tools help create better online stores.
    Does Salesforce Have a Free Plan?— The short answer is no. Here’s why.
    Top 5 CRM Price Comparison— See how Salesforce costs compare to other leading CRM providers.
    Salesforce Pricing FAQs — Get answers to some of the most common questions about Salesforce pricing
    Getting Started With Salesforce — Learn how to get the best price for your operation.
    See How Much You’ll Really Spend on Salesforce or Other CRM Providers.
    Get CRM Quotes

    Salesforce divides its various services into what it calls “clouds.”

    Sales Cloud, from $25, is the company’s basic CRM system; it includes all the basics you need for client management, including client records, lead tracking, deals, notes, and more.
    Marketing Cloud, price available on request, allows you to create one-to-one marketing campaigns.
    Service Cloud, again from $25, allows for online customer service on any device, and the ability to integrate customer service data with client records in other Salesforce clouds.
    Commerce Cloud, price available on request, helps companies build online shopping experiences.
    Sales, Marketing, Service, and Commerce are the primary clouds Salesforce offers. Beyond that, the company has a variety of other services, including a development platform for building Salesforce-powered apps, online forums connected to CRM data, and more.

    For those just starting out, however, Sales Cloud is the place to start.

    For pricing, Salesforce offers a variety of pricing levels. Essentials is for teams of five or less, and applies only to the Sales and Service clouds. As you go up in pricing tiers, Salesforce becomes more customizable and adds higher levels of support.

    There’s also Lightning Professional, Lightning Enterprise, and Lightning Unlimited. The Lightning suite of services all use a different user interface than the classic versions of these plan tiers, but offer the basically same features (albeit with a few new productivity tools).

    You can read more about the Lightning services here. Ultimately, while the “Lightning” name can be a little confusing, the services it offers are just a mildly revamped version of the services we discuss here, and come with the same benefits and price tags.

    Salesforce Typical Pricing (per user, per month):

    Sales Cloud
    Service Cloud
    Sales & Service Cloud
    Salesforce Essentials
    $25
    $25

    Standout features
    -Account, Contact, Lead, and Opportunity Management
    -Email Integration (Gmail, Outlook)
    -Mobile App
    -Cross-company collaboration
    -Customizable Reports
    -Mobile App
    No combo deal available in the
    Salesforce Essentials tier
    Lightning Professional
    $75
    $75
    $100
    Standout features
    -Lead Registration
    -Rules-Based Lead Scoring
    -Sales Forecasting
    -Developer Sandbox
    -Orders Management
    -Asset Management
    -Developer Sandbox
    -Asset Management
    -Team Collaboration Tools
    Lightning Enterprise
    $150
    $150
    $175
    Standout features
    -Workflow Automation
    -Approval Automation
    -Field Service Tools
    -Process Automation
    -AI Tools
    -Unlimited Roles and Permissions
    -Workflow and Approval Automation
    -Offline Access
    Lightning Unlimited
    $300
    $300
    $325
    Standout features
    -24/7 Support and Configuration Services
    -Unlimited Online Training
    -24/7 Support
    -Unlimited Online Training
    -24/7 Support
    We left Marketing and Commerce clouds off the table, since their prices are only available on demand. Marketing Cloud comes in four tiers — Email, Mobile, and Web Marketing; Social Media Marketing; Advertising; and B2B Marketing Automation — each of which is available at a set per-month price. In contrast, Commerce Cloud comes in just two versions — Salesforce B2C Commerce and Salesforce B2B Commerce.

    VIEW CONVERSATION
    #69681
    Forcetalks

    There is no way to get Exeption in below code

    String shref = ApexPages.currentPage().getURL();

    That is why exception part is covering. If you will pass null value in shref then also excpetion will not come till you will not use shref variable.

    If you want to cover catch in any cost try to update your code like below

    public with sharing class HouseholdMemberController {

    public HouseholdMemberController() {

    System.debug(‘>>> HouseholdMemberController BEFORE shref’);
    try {
    String shref = ApexPages.currentPage().getURL();
    System.debug(‘>>> HouseholdMemberController shref=’+shref);
    if(Test.isRunningTest())
    {
    throw new Exception();
    }

    } catch (Exception e) {
    System.debug(‘>>> ERROR =’+e);
    }
    }
    }

    VIEW CONVERSATION
    #69678
    Forcetalks

    Sometime we need to show error message on Visualforce page. We can implement this requirement by creating new instance of ApexPages.message and then adding message to Apexpages using ApexPages.addmessage. Then displaying these messages in visualforce page. We can add 5 different types of message in Visualforce Page.

     

    VIEW CONVERSATION
    #69677
    Forcetalks

    Push Topics are a connection between Salesforce and CxEngage that recognize when there is a new email message in Salesforce and sends that information to CxEngage.

    Creating a Push Topic
    Go to https://workbench.developerforce.com/.
    Select either Production or Sandbox depending on which environment your Salesforce organization is in.
    Click Login with Salesforce.Make sure that you log in with the same Salesforce account for the Salesforce organization that you are setting up with the integration.
    Go to data > Insert.
    For Object Type, select PushTopic.
    Select Single Record.
    Click Next.
    For the PushTopic field values enter:ApiVersion: 35.0
    Name: Enter the name you want for the Push Topic.
    NotifyForFields: Referenced
    NotifyForOperationCreate: false
    NotifyForOperationDelete: false
    NotifyForOperationUndelete: false
    NotifyForOperationUpdate: true
    Query: SELECT Id, <Custom Field API name> FROM Case WHERE OwnerID = ‘<queue ID>’For help finding the API name for the Last Email Received custom field that you created, see Find the API name of a field.
    Enter the queue ID for the queue that owns the incoming cases. This is the same ID that you used in the workflow rule.
    For example, if the API name for your Last Email Received custom field is LastEmail__c and your queue ID is 00G22000000R4PB, your query is:

    SELECT Id, LastEmail__c FROM Case WHERE OwnerID = ’00G22000000R4PB’

    Click Confirm Insert.

    VIEW CONVERSATION
    #69676
    Forcetalks

    Bulk API is based on REST principles and is optimized for loading or deleting large sets of data. You can use it to query, queryAll, insert, update, upsert, or delete many records asynchronously by submitting batches. Salesforce processes batches in the background.

    SOAP API, in contrast, is optimized for real-time client applications that update a few records at a time. You can use SOAP API for processing many records, but when the data sets contain hundreds of thousands of records, SOAP API is less practical. Bulk API is designed to make it simple to process data from a few thousand to millions of records.

    The easiest way to use Bulk API is to enable it for processing records in Data Loader using CSV files. Using Data Loader avoids the need to write your own client application.

    VIEW CONVERSATION
    #69675
    Forcetalks

    The tools included in lightning are:

    Browser: Google Chrome
    Browser Debugger: Chrome DevTools
    DevTools Extension: Salesforce Lightning Inspector
    Editor: Force.com IDE

    VIEW CONVERSATION
    #69534
    Forcetalks

    When importing custom objects, solutions, or person accounts, you can use external IDs to prevent duplicate records from being created as a result of the import operation. An external ID is a custom field that has the “External ID” attribute, meaning that it contains unique record identifiers from a system outside of Salesforce. When you select this option, the import wizard will detect existing records in Salesforce that have the same external ID. Note that this operation is not case-sensitive – for example, “ABC” will be matched with “abc”. However, there is an exception: if the custom field has the separate “Unique” attribute and the case-sensitive option for that attribute is selected, uppercase and lowercase letters will not be considered identical.

    The fields with below data types can only be external Id

    1. Number
    2. Text
    3. Email

    When a field is made as external Id, the field will be automatically indexed. 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.

    • This reply was modified 2 days, 22 hours ago by Salesforce | MOHIT MOHIT.
    VIEW CONVERSATION
    #69533
    Forcetalks

    It’s per each call of execute() in the batch, so for each “batch”, you can call up to 10 HTTP callouts.

     

    If the callout can handle multiple records at a time, do so, and batch up to 10 callouts per batch, otherwise, set the batch scope to 1, so each apex batch handles one record at a time.

    VIEW CONVERSATION
    #69532
    Forcetalks

    A fiscal year or financial year is a period of time used to calculate annual (yearly) financial statements in businesses and other organizations. The system administrator can set the fiscal year for your organization. The fiscal year settings are used to report on the fiscal year timeline.

    Salesforce supports two types of fiscal years:

    Standard fiscal year
    Custom fiscal year

    VIEW CONVERSATION
    #69531
    Forcetalks

    You can designate up to 25 External ID fields per object.

    External ID fields must be Custom text, number or email fields.
    External ID fields contain record IDs from systems outside Salesforce.
    You can use the upsert call to match against External ID fields during import or integration.
    External ID fields are indexed, so selective filters on them should run quickly.

    VIEW CONVERSATION
    #69530
    Forcetalks

    Salesforce Record data has three stages of deletion. Data is recovered depending on the stage it is in.

    Stage 1 – Deleted to Recycle Bin – Data in this stage can be recovered from the Recycle Bin. This can also be referred to as soft-deleted.

    To find and restore records in the Recycle Bin:

    On the left side of the homepage in CRM, click on the Recycle Bin.
    Change the drop down to All Recycle Bin.
    Search for the records.
    Select the record and click Undelete.

    Stage 2 – Emptied from the Recycle Bin or hard-deleted – Data in this stage cannot be recovered from the Recycle Bin but can be accessed via the workbench.

    To find and restore records using the Salesforce workbench:

    Prior to running the search query, Select Include under Deleted and archived records.

    Once the Id for the record is located, choose Undelete from the data drop-down at the top of the page.

    Enter the Id and follow the prompts on the screen to restore the record.
    Stage 3 – Physically or Permanently deleted – Data in this stage is deleted from the database and only recoverable by contacting Salesforce to request a Data Recovery Service (There is a fee associated with this service).

    VIEW CONVERSATION
    #69529
    Forcetalks

    You can use master-detail relationships to model many-to-many relationships between any two objects. A many-to-many relationship allows each record of one object to be linked to multiple records from another object and vice versa. For example, you create a custom object called “Bug” that relates to the standard case object such that a bug could be related to multiple cases and a case could also be related to multiple bugs. When modeling a many-to-many relationship, you use a junction object to connect the two objects you want to relate to each other.

    Junction Object
    A custom object with two master-detail relationships. Using a custom junction object, you can model a “many-to-many” relationship between two objects. For example, you create a custom object called “Bug” that relates to the standard case object such that a bug could be related to multiple cases and a case could also be related to multiple bugs.

    VIEW CONVERSATION
    #69470
    Forcetalks

    Use the System.RestRequest class to access and pass request data in a RESTful Apex method. An Apex RESTful Web service method is defined using one of the REST annotations. For more information about Apex RESTful Web service, see Exposing Apex Classes as REST Web Services.

    VIEW CONVERSATION
    #69469
    Forcetalks

    Bulk API is based on REST principles and is optimized for loading or deleting large sets of data. You can use it to query, queryAll, insert, update, upsert, or delete many records asynchronously by submitting batches. Salesforce processes batches in the background.

    SOAP API, in contrast, is optimized for real-time client applications that update a few records at a time. You can use SOAP API for processing many records, but when the data sets contain hundreds of thousands of records, SOAP API is less practical. Bulk API is designed to make it simple to process data from a few thousand to millions of records.

    The easiest way to use Bulk API is to enable it for processing records in Data Loader using CSV files. Using Data Loader avoids the need to write your own client application.

    VIEW CONVERSATION
    #69468
    Forcetalks

    In Salesforce a ‘callout’ is any https call that accesses an external URL — some other webservice or website. A ‘callin’ would be the opposite — some external web service or application using the Salesforce API to access Salesforce data.

    VIEW CONVERSATION
Viewing 20 posts - 1 through 20 (of 71 total)