Forum Replies Created

Page 3 of 6
  • Hi Avnish,

    System will allow changing relationship to master-detail only if all child records have value specified for parent as in master detail relationship, master is required.
    If any of the child value doesn’t have parent value (means look up field is blank), then system will give validation error while changing the data type.
    So if it is required to change relationship, them populate all blank values with some parent value and then change it to master detail.

    Thanks.

  • Prachi

    Member
    September 3, 2018 at 1:42 pm in reply to: How can I reduce my usage of API calls?

    Hi Chanchal,

    There are different approaches to reduce the amount of API calls consumed by a given API client, which include (but are not limited to) the following:

    • caching on the client side,
    • sending cumulative changes, rather than incremental changes( for example using Composite Resources in REST API)
    • resort to the Bulk API to mass upload/update records, instead of using the REST API to upload/update the same records.
      Thanks.
  • Prachi

    Member
    September 3, 2018 at 1:40 pm in reply to: How can I increase API call limit in my salesforce org? 

    Hi Chanchal,

    The calculation of the API request amounts based on user licenses is designed to allow sufficient capacity for your org based on your number of users. If you need a higher amount and you don’t want to purchase extra user licenses or upgrade to Performance Edition, you can purchase extra API calls. For information, contact your account representative.

    Thanks.

  • Prachi

    Member
    August 31, 2018 at 1:52 pm in reply to: How can you create a many to many relationship in salesforce

    Hi Avnish,

    This can be done by creating junction object between the two object.

    Thanks.

  • Prachi

    Member
    August 31, 2018 at 1:51 pm in reply to: How many records can a sosl query return ?

    Hi Avnish,

    As of now it can return upto 2000 records

    thanks.

  • Prachi

    Member
    August 31, 2018 at 1:50 pm in reply to: Can you see a lead which is converted in saleforce UI?

    Hi Avnish,

    The detail record is not seen. But a page, wherein it shows the links for formed account, contact and opportunity.

    thanks.

  • Prachi

    Member
    August 30, 2018 at 2:11 pm in reply to: apex manage sharing

    Hi Anjali,

    Apex managed sharing is maintained across record owner changes. Basically, if you want to share a record programmatically we use Apex Managed Sharing. For example, AccountShare is the sharing object for the Account object, ContactShare is the sharing object for the Contact object, and so on.

    Thanks.

  • Hi Anjali,

    Yes .

    Check out ISNEW( ) and ISCHANGED( ) functions .

    Rule entries which contains ISNEW( ) says if there is a new record created ,it will fire .

    Those which contains ISCHANGED( ) says if there is a change in exixting record ,rule will fire .

    you can try this.

    Thanks.

  • Prachi

    Member
    August 30, 2018 at 2:07 pm in reply to: lightning:card in salesforce.

    Hi shradha,

    Essentially it is a styled article that gives you a nice background and title format if you’re building for Lightning Page Layouts.

    How to use it
    Just like you would use an article or a div tag. You wrap your child components with lightning:card. You have two optional attributes available to you:

    --title — an attribute that lets you specify a title.

    --footer — an attribute that lets you specify a footer.

    Thanks

  • Prachi

    Member
    August 29, 2018 at 12:30 pm in reply to: Why do we use (!Test.isRunningTest()) in Salesforce Apex?

    Hello Anurag,

    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, Batch Job etc. Returns true if the code being executed is invoked from a test class otherwise returns a false.

    ! is the Logical complement operator. Inverts the value of a Boolean, so that true becomes false, and false becomes true.

    So,  (!test.isRunningTest()) will Return false if the code being executed is invoked from a test class otherwise returns a true.

    Thanks.

  • Hi Avnish,

    Export: It will fetch only active records from salesforce.
    Export All: It will fetch active as well as records from recycle bin.

    thanks

  • Prachi

    Member
    August 29, 2018 at 12:24 pm in reply to: When “Hard Delete” button will be enabled in apex data loader?

    Hi Avnish,

    When you enable Bulk API setting in apex data loader.

    thanks

  • Hi Avnish,

    Field-level security doesn’t prevent searching on the values in a field. When search terms match on field values protected by field-level security, the associated records are returned in the search results without the protected fields and their values.

    thanks

  • Prachi

    Member
    August 27, 2018 at 12:31 pm in reply to: When should Apex be used over Workflow rules or Process Builder?

    Hi Avnish,

    There are various reasons why you should use Apex over declarative automation options:

    -Workflow rules and Process Builder operations sometimes have feature limitations that can be overcome with Apex. For example, pulling information from an external system.
    -When dealing with certain or large sets of data, Apex can be more efficient than declarative options due to less limitations.

    Thanks.

  • Prachi

    Member
    August 27, 2018 at 12:29 pm in reply to: Can you explain the use of custom settings in Salesforce?

    Hi Avnish,

    Custom settings are similar to custom objects and enable application developers to create custom sets of data, as well as create and associate custom data for an organization, profile, or specific user. You can use custom settings to store a variety of information that can be accessed easily by other Salesforce tools.

    Thanks

  • Hi Anurag,

    Application Event handler should not contain name attribute just the event and action attribute is enough as mentioned here.

    This is how an application event should be fired in your clear method:

    ({
    clear : function(component, event, helper) {
    $A.get("e.c:clrValues").fire();
    }
    })
    Thanks.

  • Hello Anjali,

    Reduce() - The reduce() method applies a function against an accumulator and each element in the array (from left to right) to reduce it to a single value.

    In your code , it takes a function as input and applies that on the component.find(‘contactField’) and returns the output.

    Thanks.

  • Prachi

    Member
    August 24, 2018 at 1:42 pm in reply to: How to render a VF page based on a criteria?

    Hi Shradha,

    Here I am showing my code, hope this will help you:-

    Vf Page:-

    <apex:page controller="ifblog">
    <apex:form>
    <apex:commandButton action="{!allacc}" value="Show All Accounts" disabled="{!If((total<=acclimit),true,If((acclist.size>acclimit),true,false))}"/>
    <apex:dataTable value="{!acclist}" var="acc">
    <apex:column value="{!acc.id}" headerValue="Id"/>
    <apex:column value="{!acc.name}" headerValue="Name"/>
    </apex:dataTable>
    </apex:form>
    </apex:page>

    Controller:-

    public class iftest {
    public integer acclimit { get; set;}
    public integer total { get; set;}
    public list<account> acclist { get; set;}

    public iftest(){
    acclimit = 5;
    total = [select count() from account];
    acclist = [select id, name from account limit :acclimit];
    }

    public void allacc(){
    acclist = [select id, name from account];
    }
    }

    Thanks.

  • Prachi

    Member
    August 23, 2018 at 12:53 pm in reply to: What are component Naming Rules in Salesforce Lightning?

    Hi Avnish,

    A These are Naming Rules in Salesforce Lightning
    • Must begin with a letter
    • Must contain only alphanumeric or underscore characters
    • Must be unique in the namespace
    • Can’t include whitespace
    • Can’t end with an underscore
    • Can’t contain two consecutive underscores

    thanks

  • Prachi

    Member
    August 22, 2018 at 1:27 pm in reply to: What Is a Bucket Field In Salesforce Reports?

    hi Avnish,

    A bucket field lets you group related records together by ranges and segments, without the use of complex formulas and custom fields. Bucketing can thus be used to group, filter, or arrange report data. When you create a bucket field, you need to define multiple categories (buckets) that are used to group report values.

    thanks.

  • Prachi

    Member
    August 22, 2018 at 1:11 pm in reply to: Is Salesforce Lightning a Mvc Framework?

    Hi Avnish,

    No, it’s a component-based framework.

    thanks.

  • Prachi

    Member
    August 21, 2018 at 1:00 pm in reply to: How SaaS can be helpful to Salesforce?

    Hi Avnish,

    1. As SaaS is a subscription based, customers can always choose not to renew if they are dissatisfied
    2. Customers can avoid a large initial investment in an IT infrastructure and day to day hustle of maintaining infrastructure
    3. SaaS customer provides same provider infrastructure and also easy integration
    4. SaaS applications use a simple internet interface that makes easier for customer to use.
    5. SaaS always provide a latest platform to the customer with innovation.

    thanks

  • Prachi

    Member
    August 21, 2018 at 12:58 pm in reply to: How Salesforce deploys sales tracking?

    Hi Avnish,

    Salesforce is very meticulous when it comes to recording intricate details like sales numbers, customer details, customers served, repeat customers, in order to create detailed reports, charts and dashboards for keeping track of sales.

    thanks

  • Prachi

    Member
    August 20, 2018 at 12:57 pm in reply to: What is the use of @testsetup annotation in a test class?

    Hi Avnish,

    We 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.
    Test setup methods can reduce test execution times especially when you’re working with many records. Test setup methods enable you to create common test data easily and efficiently. By setting up records once for the class, you don’t need to re-create records for each test method. Also, because the rollback of records that are created during test setup happens at the end of the execution of the entire class, the number of records that are rolled back is reduced. As a result, system resources are used more efficiently compared to creating those records and having them rolled back for each test method.

    Thanks.

  • Hi Anjali,

    Lightning LockerService enforces security into Single Page Applications built using Lightning components. Locker uses browser CSP (Content Security Policy) to prevent a web page against cross-site scripting (XSS), clickjacking and other code injection attacks resulting from execution of malicious content in the trusted web page context.

    In addition to prevention against vulnerabilities, Locker provides two key functions: namespacing your components (similar to Apex namespacing) and isolating component Javascript to only interact with your own component. This allows the secure co-existence of components from multiple vendors on the same web page and ISV’s to build components to publish on the AppExchange.

    Thanks.

Page 3 of 6