Forum Replies Created

Page 51 of 53
  • Parul

    Member
    September 7, 2018 at 4:37 am in reply to: Splitting the string removes the delimiter

    Hi Ajit,

    Please try this, Add this ‘?=’ character before the value on which you want to split,

    String text = "Good morning. Have a good class. " +
    "Have a good visit. Have fun!";

    String[] words = text.split("\\W+");

     

    Thanks.

  • Parul

    Member
    September 7, 2018 at 4:24 am in reply to: Can we insert parent and child object record in single DML statement?

    To insert the parent-child object record in single DML statement as follows:

    Inserting Custom objects (Parent and Child) records in a Single DML Statement:
    here assume Parent__c and Child__c is a custom object:
    create a External Id in Parent__c object called Parent_Ref__c.

    Child__c c = new Child__c();
    c.Name = 'ChildRecord1';
    Parent__c parentReference = new Parent__c(p.Parent_Ref__c = 'abc1234');
    c.Parent__r = parentReference;
    Parent__c p = new Parent__c();
    Name ='TheBlogReaders';
    p.Parent_Ref__c = 'abc1234';
    Database.SaveResult[] results = Database.insert(new SObject[] { p, c });

     

    Thanks.

  • Parul

    Member
    September 7, 2018 at 3:41 am in reply to: How can i check how many classes are covered by a single test Class?

    Developer Console > File > Open > 'Select class', top left corner says which tests are covering the specific class and the percentage of coverage of each class.

     

    Thanks

  • Parul

    Member
    September 6, 2018 at 5:42 pm in reply to: Missing module errors

    Hi Chanchal,

    If you specify a module in a multi-value list, such as a list, meta, or prop list of query submodules, and the module is not present on a code.

    For example it is implemented by an extension that isn't loaded, then requesting throws the warning "Unrecognized value for parameter ..." and possibly additional warnings for the submodule's parameters.

    For example for a list query submodule, raremodule, a query such as

    api.php? action=query& list=raremodule& rmparam=foo

     

    Thanks.

  • Parul

    Member
    September 6, 2018 at 4:20 pm in reply to: What is Caching?

    Hi Anurag,

    Caching is a high-speed data storage layer which stores a subset of data, typically transient in nature so that future requests for that data are served up faster than is possible by accessing the data’s primary storage location. Caching allows you to efficiently reuse previously retrieved or computed data.

    The data in a cache is generally stored in fast access hardware such as RAM (Random-access memory) and may also be used in correlation with a software component. A cache's primary purpose is to increase data retrieval performance by reducing the need to access the underlying slower storage layer.

    Trading off capacity for speed, a cache typically stores a subset of data transiently, in contrast to databases whose data is usually complete and durable.

    Thanks.

  • Parul

    Member
    September 6, 2018 at 1:51 pm in reply to: What is Quantity Schedule in Salesforce?

    Hi Anjali,

    A quantity schedule is suitable if your customers pay once but receive the product in increments, for example, as with an annual magazine subscription for a monthly magazine. A quantity schedule defines the dates, number of units, and number of installments for payments, shipping, or other use as determined by your company.

     

    Thanks.

  • Parul

    Member
    September 6, 2018 at 1:38 pm in reply to: Explain Salesforce CPQ Product Rules and Features.

    Hi Anjali,

    CPQ product rules help ensure sales reps are putting together the right products and bundles every single time. You don’t have to worry about checking whether products and options are compatible with one another, or whether a specific SKU is appropriate for your customer’s business size and use case. We do that busy work so you can move quickly to deliver on the high expectations your customers hold for their buying experience.

    Validation Rules: Check quote line items and verify that there are no invalid products.

    Configuration Rules: Check the product and its components to prevent invalid product combinations from being selected on a product bundle.

    Filter Rules: Prefilter the products that are available to add to a bundle.

    Alert Rules: Guide and inform through messages during configuration or pricing.

    Product Feature automates your Quote Line Editor with respect to those criteria’s which you don’t want your CPQ users should perform. In such criterion, you can set the Validation Rule, Selection criteria, an Alert message, or a filter.

     

    Thanks.

  • Parul

    Member
    September 6, 2018 at 1:35 pm in reply to: Explain Salesforce CPQ Product Rules and Features.

    CPQ product rules help ensure sales reps are putting together the right products and bundles every single time. You don’t have to worry about checking whether products and options are compatible with one another, or whether a specific SKU is appropriate for your customer’s business size and use case. We do that busy work so you can move quickly to deliver on the high expectations your customers hold for their buying experience.

    Validation Rules: Check quote line items and verify that there are no invalid products.

    Configuration Rules: Check the product and its components to prevent invalid product combinations from being selected on a product bundle.

    Filter Rules: Prefilter the products that are available to add to a bundle.

    Alert Rules: Guide and inform through messages during configuration or pricing.

    Product Feature automates your Quote Line Editor with respect to those criteria’s which you don’t want your CPQ users should perform. In such criterion, you can set the Validation Rule, Selection criteria, an Alert message, or a filter.

     

    Thanks.

  • Hello Aman,

    First make a field on account object with name “OppAmount” and then use this code:

    I have written a sample trigger for you:

    #Trigger
    trigger totalAmount on Opportunity (after insert, after update, after delete) {
    Map<Id, List<Opportunity>> acctIdOppoListMap = new Map<Id, List<Opportunity>>();
    Set<Id> acctIds = new Set<Id>();
    List<Opportunity> oppoList = new List<Opportunity>();
    if(trigger.isUpdate || trigger.isInsert){
    for(Opportunity oppo : trigger.New){
    if(oppo.AccountId != null){
    acctIds.add(oppo.AccountId);
    }
    }
    }
    if(trigger.isDelete){
    for(Opportunity oppo : trigger.old){
    if(oppo.AccountId != null){
    acctIds.add(oppo.AccountId);
    }
    }
    }
    if(acctIds.size() > 0){
    oppoList = [SELECT Amount, AccountId FROM Opportunity WHERE AccountId IN : acctIds];
    for(Opportunity oppo : oppoList){
    if(!acctIdOppoListMap.containsKey(oppo.AccountId)){
    acctIdOppoListMap.put(oppo.AccountId, new List<Opportunity>());
    }
    acctIdOppoListMap.get(oppo.AccountId).add(oppo);
    }
    List<Account> acctList = new List<Account>();
    acctList = [SELECT Amount__c FROM Account WHERE Id IN: acctIds];
    for(Account acct : acctList){
    List<Opportunity> tempOppoList = new List<Opportunity>();
    tempOppoList = acctIdOppoListMap.get(acct.Id);
    Double OpportunityAmount = 0;
    for(Opportunity oppo : tempOppoList){
    if(oppo.Amount != null){
    OpportunityAmount += oppo.Amount;
    }
    }
    acct.Amount__c = OpportunityAmount;
    }
    update acctList;
    }
    }

    Hope, this will solve your problem.

    Thanks!!

  • Parul

    Member
    September 6, 2018 at 11:47 am in reply to: What is child relationship name of Account and Contact in Salesforce?

    Hi Ratnakar,,

    Child relationship name is "Contacts".

    Thanks!

  • Hello Mohit,

    The main difference is:

    Deactivate means that you don't allow that user login in your org and it frees up that salesforce license to be given to another user.
    Freeze just don't allow that user login in your org.

    Hope this helps.!

    Thanks.!

  • Parul

    Member
    September 6, 2018 at 9:39 am in reply to: How is a site related to community in Salesforce?

    Sites is an intuitive, convenient tool for customizing your community. Community Builder lets you create a community based on a pre-configured template, and then apply to brand, edit pages, update your template, and publish changes all from one user-friendly interface.

    You can use  Community site when you want to achieve:

    • Set a home page and set up multilingual support for your community in Site.com Studio, a Web content management system that provides extra configuration options. Site.com Studio is easily accessible from Community Management.
    • Create data-driven pages, such as product catalogs or other listings, using your organization’s data.

    Thanks.

  • Hi Avnish,

    Big objects let you store and manage massive amounts of data on the Salesforce platform. Big objects capture data for use within Lightning Platform and are accessible via a standard set of APIs to clients and external systems. What differentiates big objects is that they have been built to provide consistent performance whether there is 1 million records, 100 million, or even 1 billion records. This scale is what gives big objects their power and what defines the features that are provided.

    Platform events are your custom platform event determines the event data that the Lightning platform can produce or consume. Platform events are part of the Salesforce enterprise messaging platform. The platform provides an event-driven messaging architecture to enable apps to communicate inside and outside of Salesforce.

    External objects are similar to custom objects, except that they map to data that’s stored outside your Salesforce org. Each external object relies on an external data source definition to connect with the external system’s data.

     

    Thanks.

     

  • Parul

    Member
    September 6, 2018 at 6:39 am in reply to: What are the components of "REST" request in Salesforce?

    Hi Shradha,

    Components are :-

    a. Resource URI

    b. HTTP method

    c. Request headers

    d. Request body(In case of GET method,we are not able to use Request body)

    e.Request Parameter(These parameter are also append to the URI)

    Thanks

     

  • Parul

    Member
    September 6, 2018 at 6:23 am in reply to: How can we convert a Set to Set in SFDC?

    Hi Danna

    Please try this

    Set<Id> setofId = new Set<Id>{'001C000001DgWjE','001C000001DgWjD'};
    Set<String> setofString = (Set<String>)JSON.deserialize(JSON.serialize(ids), Set<String>.class);
    System.debug('setofString=' + setofString);

    Thanks

  • Parul

    Member
    September 5, 2018 at 10:07 pm in reply to: Define managed sharing in APEX?

    Hi Prachi,

    To access sharing programmatically, you must use the share object associated with the standard or custom object for which you want to share. For example, AccountShare is the sharing object for the Account object, ContactShare is the sharing object for the Contact object. In addition, all custom object sharing objects are named as follows, where MyCustomObject is the name of the custom object:
    MyCustomObject__Share
    This is a capability that allows Salesforce developers and admins to share the resources. Specific permissions are set to manage the sharing and limit the access.

    Hope this helps.!!

  • Parul

    Member
    September 5, 2018 at 10:04 pm in reply to: What is Payload?

    Hi Chanchal,

    Payoad is the actual information or message in transmitted data, as opposed to automatically generated metadata.You cannot exceed the payload limit; this limit is in place to ensure equal access to resources for all users of the platform.
    Request body of every HTTP message includes request data, and this data is called as Payload. This part of the message is of interest to the recipient.

     

  • Parul

    Member
    September 5, 2018 at 6:07 pm in reply to: HTTP status codes

    Hi Chanchal,

    HTTP status codes are standard response codes given by web site servers on the internet. The codes help identify the cause of the problem when a web page or other resource does not load properly.

    HTTP status codes are sometimes called browser error codes or internet error codes.

    For example, the HTTP status line 500: Internal Server Error is made up of the HTTP status code of 500 and the HTTP reason phrase of Internal Server Error.

    Thanks.

  • Parul

    Member
    September 5, 2018 at 2:00 pm in reply to: What is the difference between WhoId and WhatId on Task?

    Hello Shradha.

    These are related objects IDs on the task record.
    WhatId could be used to link that activity with Account, Oppty, Custom object etc

    WhoId can be used to link the activity with Contact, Lead etc.

    Thanks.

    • This reply was modified 6 years, 2 months ago by  Parul.
  • Parul

    Member
    September 5, 2018 at 1:49 pm in reply to: Using return in Apex

    Hi Anurag,

    Yes if the return type of method of class1 and class2 is same then we can call the method of class2 from return of method of class1

     

    e.g.

    Class1

    public class Class1{

    public string methodtoreturnString1(){

    return Class2.methodtoreturnString2();

    }

    }

    public class Class2{

    public string methodtoreturnString2(){

    return 'Salesforce';

    }

    }

    Thanks

     

     

  • Hi Danna

    Yes we can get a parameter value from URL of VisuaforcePage.

    Foe this you have to extract this value through instance in URL

    e.g. if instance of URL is

    ap4.salesforce.com/myPages?requiredvalue=Salesforce

    Then use

    String myValue = ApexPages.CurrentPage().getparameters().get(‘requiredvalue’);

    And here you have your value

    Thanks

  • Parul

    Member
    September 5, 2018 at 1:34 pm in reply to: partner relationship management (PRM)

    Hi Anjali,

    PRM applications are built for indirect sales (think: partners). They extend your CRM to help you manage partners and make sure the customer has the same great experience whether they talk to your sales team or your partner. Plus, they help properly train partners and have the customer data and tools partners require to drive retention and future sales.

    PRM extends CRM functionality to your partners, then adds lots of partner-specific functions on top.

     

    Thanks.

     

  • Parul

    Member
    September 5, 2018 at 1:29 pm in reply to: Ways Sales Cloud PRM helps you optimize the partner life cycle.

    Hi Anjali

    The ways Sales Cloud PRM helps you optimize the partner life cycle are:

    • Recruit
    • Educate
    • Manage
    • Market
    • Sell
    • Service
    • Analyze

    Thanks.

  • Parul

    Member
    September 5, 2018 at 12:57 pm in reply to: What is a capability of cross-object formulas fields?

    Hi Shradha,

    Cross-Object Formula Fields

    Provides the ability to reference the value of a field in a parent object from the child objects through detail pages, list views, and reports
    They can reference fields on parent or grandparent objects up to 10 relationships away
    Cross object formula is calculated as the records are viewed
    Cross-object formula also work from child to parent but only in master-detail relationship

     

    Thanks.

  • Parul

    Member
    September 5, 2018 at 12:10 pm in reply to: How can I use Ischanged() in lookup field in Salesforce?

    Hello Avnish,

    You can do this using WF rule on the parent object that checks all those field if they have been modified and set a IsChanged checkbox to true. Next time you do a modification on the child object you verify if the Parent__r.IsChanged__c == true, and if it is then prevent the user from edit(validation rule)

    Thanks.

Page 51 of 53