Prachi Gupta
IndividualForum Replies Created
-
Prachi
MemberSeptember 3, 2018 at 2:04 pm in reply to: Can we change already existing lookup relationship between 2 objects to master detail relationship?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.
-
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
MemberSeptember 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
MemberAugust 31, 2018 at 1:52 pm in reply to: How can you create a many to many relationship in salesforceHi Avnish,
This can be done by creating junction object between the two object.
Thanks.
-
Hi Avnish,
As of now it can return upto 2000 records
thanks.
-
Prachi
MemberAugust 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.
-
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.
-
Prachi
MemberAugust 30, 2018 at 2:09 pm in reply to: Is it possible to fire validation only for records which is being getting updated not to newly inserHi 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.
-
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
MemberAugust 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.
-
Prachi
MemberAugust 29, 2018 at 12:25 pm in reply to: What is difference between “Export” and “Export All” in apex data loader?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
MemberAugust 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
-
Prachi
MemberAugust 28, 2018 at 11:51 am in reply to: What will happen if a field is hidden through Field level security and user search values in that field?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
MemberAugust 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
MemberAugust 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
-
Prachi
MemberAugust 24, 2018 at 1:51 pm in reply to: How can we call child component controller method from the parent component controller method?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. -
Prachi
MemberAugust 24, 2018 at 1:45 pm in reply to: What reduce(function) will do in component.find() in Salesforce Lightning?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.
-
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
MemberAugust 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 underscoresthanks
-
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.
-
Hi Avnish,
No, it’s a component-based framework.
thanks.
-
Hi Avnish,
- As SaaS is a subscription based, customers can always choose not to renew if they are dissatisfied
- Customers can avoid a large initial investment in an IT infrastructure and day to day hustle of maintaining infrastructure
- SaaS customer provides same provider infrastructure and also easy integration
- SaaS applications use a simple internet interface that makes easier for customer to use.
- SaaS always provide a latest platform to the customer with innovation.
thanks
-
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
MemberAugust 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.
-
Prachi
MemberAugust 20, 2018 at 12:54 pm in reply to: What security benefits does Lightning LockerService provide in Salesforce?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.