Forum Replies Created

Page 24 of 24
  • Deepak

    Member
    January 28, 2020 at 12:22 pm in reply to: How can I prevent the Creation of Duplicate rules In Salesforce?

    Hi Anuj,

    You can use “conditions” in the duplicate rules to apply the alert to different sources of record creation as needed.

    Let’s say you want your end users to see an alert when manually creating a potential duplicate, but you also want them to be able to ignore the alert if they determine it’s not truly a duplicate. You can do that.

    Let’s also say you have another source of record creation — this could be another business unit or a third-party integration — where you would rather completely block the record from being created if the matching criteria are met. You can do that, too.

    It is very simple to do this. All you have to do is use the “conditions” in the duplicate rules to apply the rules to each scenario. Profile and username are common conditions that are leveraged for this purpose.

  • Hi Anuj,

    It is not  necessary to Create Account and Contact both in Salesforce while creating Lead,but it is considered as the best practice to add account and contact before creating a lead, so it is unnecessary for us to have leads convert to contact records.

    Hope it helps!

  • Deepak

    Member
    January 27, 2020 at 12:18 pm in reply to: What is isExecuting in Salesforce?

    Hi Shubham,

    Trigger. isExecuting in Salesforce determines if the context is trigger or Visualforce.

    If it returns true

    then it is trigger,

    Otherwise it is VisualForce.

    For e.g.

    public class TriggerContextCheckingisExecuting
    {
      public Boolean updateContact(Contact[] conList)
      {
         // Will not update contact if method is called in TriggerContext
         if(Trigger.isExecuting)
         {
            // Do Not Update Any contact
            System.debug(‘ $ $ NOT updating contacts’);
         }
         else
         {
           // update contacts
           System.debug(‘ $  updating contacts’);
         }
         System.debug(‘ $ return ‘ + Trigger.isExecuting);
         return Trigger.isExecuting;
      }
    }
    Apex Trigger on Contact object
    
    trigger ContextCheckTrigger on Contact (before insert, before update)
    {
       TriggerContextisExecuting isExecuting = new isExecuting();
       isExecuting.updateContact(Trigger.New);
    }

     

  • Deepak

    Member
    January 27, 2020 at 10:40 am in reply to: What is <apex:param> tag in Salesforce?

    Hi Udit,

    A param i.e. a parameter used for the parent component.

    It can be a child of a following components:

    <apex:actionFunction>
    <apex:actionSupport>
    <apex:commandLink>
    <apex:outputLink>
    <apex:outputText>
    <flow:interview>

    For e.g. Using <apex:param> in <action:function> given below:

    <apex:page controller="ApexParam1Controller">
        <apex:form >
            <a href="javascript:jsActionFunction('TestValue');">Send Param To Apex</a> <br />
            
            <apex:outputPanel id="vfParamPanel">
                The value of parameter is : {!vfParam}
            </apex:outputPanel>
            
            <apex:actionFunction name="jsActionFunction" action="{!doActionFunction}" reRender="vfParamPanel">
                <apex:param name="vfParam" value="" assignTo="{!vfParam}" />
            </apex:actionFunction>
        </apex:form>
    </apex:page>
    public class ApexParam1Controller{
        public String vfParam{get; set;}
        public ApexParam1Controller(){
            
        }
        public PageReference doActionFunction(){
            // Do Something...
            System.debug('vfParam : ' + vfParam);
            return null;
        }
    }

     

  • Hi Pooja,

    New version returns List of new records before inserting into the Database.

    This is available in Before Insert, Before Update, After Insert, After Update Triggers and Undelete Triggers.

    Old version returns List of old records which are already inserted into the Database.

    This is available in Before update, after update, Before Delete and After Delete triggers.

    Hope it helps!

  • Deepak

    Member
    January 24, 2020 at 1:29 pm in reply to: What are the Queues in Salesforce and where they can be used?

    Hi Arun,

    Queues are like places where records are placed until they are not assigned to any of the user who will work on that record or who will have the responsibility of that record. In Salesforce, record is assigned to a user by making the user its owner, the owner works on it & have the full responsibility of that record.

  • Hi Krati,

    You are trying to get the value of ApexPages.currentPage().getParameters().get(‘RecordId’). But it is returning a null value because there might not be any existing record of that particular record id or may be missing some URL parameters.

    Hope it helps!

  • Deepak

    Member
    January 24, 2020 at 1:10 pm in reply to: What is the use of <apex:Repeat> Tag in Salesforce Visualforce ?

    Hi Arun,

    <apex:repeat> is used when you want some(e.g. any sObjects) in VisualForce page to repeat as many times you want.

    For e.g. An account with multiple contact.

  • Deepak

    Member
    January 23, 2020 at 2:55 pm in reply to: what is a wrapper class in Salesforce?

    Hi Shubham,

    A wrapper class is a collection of different Salesforce data types.

    You can combine multiple data types .

    For example, there is a wrapper class that can access the account records and displays an in-page block table

  • Hi Pooja,

    output label: It is used to display text on a Visualforce page.

    outputField: A read-only display of a label and value for a field on a Salesforce object.

  • Deepak

    Member
    January 23, 2020 at 2:29 pm in reply to: What is External Lookup in Salesforce?

    Hi Krati,

    This relationship is  new field type introduced with Salesforce Connect.

    This type links an object to an external object.

    You link Order Details to Orders based on the Order ID field in both objects, resulting in a new related list on the Orders page.

    Hope it helps!

  • Deepak

    Member
    January 22, 2020 at 3:35 pm in reply to: what are the diffrent use cases of SOSL and SOQL in salesforce?

    Hi Mohit,

    You can use SOQL to fetch records for a single object.

    You can use SOSL to search fields across multiple object.

  • Deepak

    Member
    January 22, 2020 at 3:28 pm in reply to: When to use the Database.Stateful in Salesforce?

    Hi Shweta,

    Database.Stateful is used when the execute method modifies a class variable in such a way that it is to be used across multiple execute methods or in the finish method.

    Hope it helps!

  • Hi Manish,

    When existing data from Master-Detail Relationship is converted to Lookup Relationship,parent(Account) no longer controls the behaviour of child(Contact) i.e. whatever for example security rules applied on account didn't necessarily applied on contact.

     

    Hope it helps!

  • Deepak

    Member
    January 21, 2020 at 1:08 pm in reply to: What is big object in Salesforce?

    Hi Aditya,

    Big Objects as the name itself predicts

    Storage of massive amounts of data on the Salesforce platform.

    Best thing about Big Objects is that they can provide consistent performance for objects with records upwards of a billion with a standard set of APIs within the org as well as an external system (REST, SOAP, Bulk etc).

  • Hi Ayush,

    You can add upto 5 concurrent batch jobs to the queue.

    Hope it helps!

  • Deepak

    Member
    January 21, 2020 at 1:02 pm in reply to: What is Pseudocode in Salesforce?

    Hi Mohit,

    Pseudocode in any language is detailed or user-friendly readable code description of what a computer program or algorithm do,expressed in natural language instead of direct programming language.

     

    Hope it helps!

  • Hi Pooja,

    You are right we can rename standard object but we still need custom object.Because when we are applying master-detail relationship to the recruiting app in which if we put standard objects on student side and custom objects on recruiter side then any changes done by student cannot be redone by recruiter,so we have to made custom object on recruiter side too.

    May this help,if possible please suggest some better answer!

  • Deepak

    Member
    January 20, 2020 at 2:04 pm in reply to: How many relationship can we make on an object?

    Hi Pooja,

    We can make different types of relationships by creating custom relationship fields on an object as follows:

    1.Hierarchical relationship → 1:1
    2.Look-up relationship → 1:M
    3.Master-details relationship → 1:M
    4.Many-to-many relationship → M:M

    Let me know if it helps!

  • Deepak

    Member
    January 17, 2020 at 3:09 pm in reply to: What are the subsidiaries in Salesforce?

    Hi Ratnesh,

    I have discovered some more subsidiaries as mentioned below:

    1.Tableau Software -  interactive data visualization software company.

    2.Pardot - software as a service (SaaS) marketing automation platform.

    3.MuleSoft - provides integration software for connecting applications, data and devices.

    4.Heroku - cloud platform as a service supporting several programming languages.

    5.Demandware, Inc. - cloud-based unified e-commerce platform with mobile, AI personalization, order management capabilities, and related services for B2C and B2B retailers and brand manufacturers around the world.

    6.Datorama Inc. - an end to end marketing integration platform that allows marketers to unify all their data, KPIs and stakeholders across teams, channels, platforms etc, so as to identify a single unified source of truth.

    7.ClickSoftware Technologies - offers automated mobile workforce management and service optimization solutions for enterprise and small businesses, both for mobile and in-house resources.

    8.SalesforceIQ -  out-of-the-box CRM for small businesses that you can set up in minutes. It removes the need for manual data entry so sales teams can focus on closing deals, not entering data.

    9.SteelBrick, LLC -  a vendor that offers configure-price-quote (CPQ) functionality. Essentially what that means is that it allows organizations to offer highly customized pricing and quoting to different customers.

    10.IGoDigital - provides web-based commerce tools, personalization, and product recommendations designed to increase customer interaction.

    Still if requirements are not fulfilled you can browse the below link and find out all the subsidiaries available in salesforce:

    https://www.google.com/search?q=What+are+the+Salesforce+subsidiaries%3F&oq=What+are+the+Salesforce+subsidiaries%3F&aqs=chrome..69i57j69i60&sourceid=chrome&ie=UTF-8

    Let me know if this helps.

  • Yes,we can do this by matching and duplicate rules.

    Let me know if this helps.

  • Above answer is for normal case,for salesforce using ''Hard Delete'' option in data loader.By using hard delete option will permanently delete from salesforce and it will not go to Recycle bin and also you cannot recover deleted records.

  • There are various ways to skip the recycle bin,one of them are:

    1.Change Properties to Skip Recycle Bin

    • Log in to your Windows PC.
    • On the Desktop, locate Recycle Bin folder.
    • Right-click on the Recycle Bin and choose Properties.
    • Under ‘Settings for Selected location’, choose the ‘Don’t move files to Recycle Bin. Remove files immediately when deleted.’ radio button.
    • If you want to prevent accidental deletion, click the ‘Display delete confirmation dialog’ checkbox.
    • Click the ‘Apply’ button and then ‘OK’ to save the changed Recycle Bin settings/properties.
      From now on, when you delete a file or folder, it will be permanently deleted from the system. Windows will automatically skip the Recycle Bin and based on your settings, you may get prompt to confirm permanent file deletion.
  • Deepak

    Member
    January 14, 2020 at 1:30 pm in reply to: Can you explain the order of execution in Triggers in Salesforce?

    Here is order of execution in salesforce:

    The original record is loaded from the database.
    System Validation Rules.
    Executes all before triggers.
    Custom Validation rules.
    Executes duplicate rules.
    Saves the record to the database, but doesn’t commit yet.
    Executes all after triggers.
    Executes assignment rules.
    Executes auto-response rules.
    Executes workflow rules.
    If there are workflow field updates, updates the record again.
    If the record was updated with workflow field updates, fires before and after triggers one more time. Custom validation rules, duplicate rules, and escalation rules are not run again.
    Executes processes and flows launched via processes and flow trigger workflow actions.
    Executes escalation rules.
    Executes entitlement rules.
    If the record contains a roll-up summary field or is part of a cross-object workflow, performs calculations and updates the roll-up summary field in the parent record. Parent record goes through save procedure.
    If the parent record is updated, and a grandparent record contains a roll-up summary field or is part of a cross-object workflow, performs calculations and updates the roll-up summary field in the grandparent record. Grandparent record goes through save procedure.
    Executes Criteria Based Sharing evaluation.
    Commits all DML operations to the database.
    Executes post-commit logic, such as sending email.

Page 24 of 24