Marziya Sarwar
IndividualForum Replies Created
-
Marziya
MemberFebruary 13, 2020 at 2:29 pm in reply to: What does e.force:createRecord in var createContact = $A.get("e.force:createRecord"); do in Lightning Component in Salesforce?Hii Deepak,
$A.get("e.force:createRecord") globally create contact field and display the record create page for an object, set the object name on the entityApiName attribute and fire the event. recordTypeId is optional and, if provided, specifies the record type for the created object. defaultFieldValues is optional and, if provided, specifies values to use to prepopulate the create record form.
-
Marziya
MemberFebruary 13, 2020 at 2:06 pm in reply to: What is setCompressed(flag) method in Salesforce Apex?Hii Sumit,
The setCompressed() method of the HttpRequest class appears to do just that (apply gzip compression to the request body). If true, the data in the body is delivered to the endpoint in the gzip compressed format. If false, no compression format is used.
-
Marziya
MemberFebruary 12, 2020 at 3:45 pm in reply to: How to implement Accordion with with multiple sections open in Lightning Components?Hii Deepak,
You can configure the accordion to allow multiple sections to be open, and then the sections can be opened and closed by clicking section headers. You can specify one or multiple active sections. Active sections are expanded when the component loads.
-
Marziya
MemberFebruary 12, 2020 at 3:44 pm in reply to: What does Form Display Density do in Lightning Component in Salesforce?Hii Deepak,
In the Salesforce user interface, the Display Density setting lets users choose how densely the content is displayed. ... Display density is supported for lightning-input-field and lightning-output-field within the form; display density is not supported for custom components within the form.
-
Marziya
MemberFebruary 12, 2020 at 3:42 pm in reply to: How to override Standard Button with Custom Button in Lightning Component in Salesforce?Hii Deepak,
Steps to overriding standard buttons
Go to setup -> opportunity -> Buttons,links, and actions, then click edit on new action. see below image for reference. Next select override with visualforce option and select “newopportunitycreatepage” you created above and save your changes -
Marziya
MemberFebruary 11, 2020 at 1:57 pm in reply to: When Field history is updated for processing data in Salesforce?Hii Mohit,
You can select certain fields to track and display the field history in the History related list of an object. Field history data is retained for up to 18 months through your org, and up to 24 months via the API.
-
Marziya
MemberFebruary 11, 2020 at 1:55 pm in reply to: Define Recursive Trigger and how to avoid it in Salesforce ?Hii Arun,
A recursive trigger is one that performs an action, such as an update or insert, which invokes itself owing to, say something like an update it performs. How to avoid Recursive Trigger: To avoid recursive triggers you can create a class with a static Boolean variable with default value true.
-
Marziya
MemberFebruary 11, 2020 at 1:52 pm in reply to: What do you mean by the bulkifying trigger in Salesforce Apex?Hii Arun,
The term bulkifying Apex code refers to the concept of making sure the code properly handles more than one record at a time. When a batch of records initiateApex, a single instance of that Apex code is executed, but it needs to handle all of the records in that given batch.
-
Hii Shubham,
An Apex callout enables you to tightly integrate your Apex with an external service by making a call to an external Web service or sending a HTTP request from Apex code and then receiving the response. Apex provides integration with Web services that utilize SOAP and WSDL, or HTTP services (RESTful services).
-
Marziya
MemberFebruary 10, 2020 at 4:45 pm in reply to: How to use HasRecordid in Lightning Component in Salesforce?Hii Deepak,
Add the force:hasRecordId interface to a Lightning component to enable the component to be assigned the ID of the current record.
...
force:hasRecordId in Custom Lightning Component development -
Marziya
MemberFebruary 10, 2020 at 4:43 pm in reply to: How can we call one controller function from another controller function in Lightning in Salesforce ?Hii Kirandeep,
I think that the better approach would be to try to extract whatever it is that you need to call in that controller function into the helper and call the helper. The helpers exist to enable sharing code within a component. Do you have a use case where that wouldn't work?
Just for fun, inspecting the action object the following would work:
var action = component.get("c.bar");
action.$meth$(); -
Marziya
MemberFebruary 7, 2020 at 1:20 pm in reply to: What is the Migration Strategy of Aura Components in Salesforce?hii Shweta,
Aura components and Lightning web components can exist in the same application. This section helps you to migrate components and apply your existing skills by mapping concepts from Aura components to Lightning web components.
The Lightning Web Components for Aura Developers Trailhead module is another resource to help you learn about Lightning web components.
Migration Strategy
The programming model for Lightning Web Components is fundamentally different than the model for Aura components. Migrating a component is not a line-by-line conversion, and it's a good opportunity to revisit your component's design. Before you migrate an Aura component, evaluate the component’s attributes, interfaces, structures, patterns, and data flow. -
Marziya
MemberFebruary 7, 2020 at 1:17 pm in reply to: What is benefit of an Event-driven architecture in Salesforce?The Salesforce enterprise messaging platform offers thebenefits of event-driven software architecture. Platformevents are the event messages that your apps send and receive. They simplify the process of communicating changes and responding to them without requiring you to write complex logic.
-
Marziya
MemberFebruary 6, 2020 at 2:21 pm in reply to: What are two permissions or settings in permission sets that can be included in Change sets in Salesforce?Developers can use permission sets or profile settings to specify permissions and other access settings in a change set. When deciding whether to use permission sets, profile settings, or a combination of both, consider the similarities and differences.
-
Marziya
MemberFebruary 6, 2020 at 2:20 pm in reply to: Why trigger is Preferred over Process Builder in Salesforce?Hii Anuj,
Process Builder cannot handle delete and undelete DML. Whereas Apex triggerscan handle all DML operations. An error reported in Process Builder is more generic which makes it difficult to find the origin of the error. With Apex triggers, exception handling can be made more specific.
-
Marziya
MemberFebruary 6, 2020 at 2:19 pm in reply to: Which Two Components are available to deploy using the metadata api in Salesforce?Hii Anuj,
b.) Lead conversion settings
d.) Case SettingsBecause, the other two options are not available as metadata to be deployed.
-
Marziya
MemberFebruary 4, 2020 at 1:35 pm in reply to: How Many Records We Can Display On Page For A Report in Salesforce?Hii Sumit,
Ways to resolve "Collection size xxxx exceeds maximum size of 1000" on VF page.Visualforce pages are not designed to display more than 1000 records in UI.
-
Marziya
MemberFebruary 4, 2020 at 1:31 pm in reply to: How to use aria-describedby attribute in Salesforce Lightning?Hii Shweta,
<ul role="tree" aria-labelledby="treeheading" ...>
<button aria-controls="accordion-details-01" aria-expanded="true" ...>
<div aria-hidden="false" ...>
-
Marziya
MemberFebruary 4, 2020 at 1:28 pm in reply to: How Can we use set<id> to limit the number of records returned by a soql query in Salesforce?Hii Anuj,
LIMIT. LIMIT is an optional clause that can be added to a SELECT statement of aSOQL query to specify the maximum number of rows to return. This query returns the first 125 Account records whose Industry is Media . You can use LIMIT with count() as the fieldList to count up to the maximum specified.
-
Marziya
MemberFebruary 3, 2020 at 1:37 pm in reply to: What is the total number of solution records that can be imported via import wizard in Salesforce?Hii Anjali,
50,000
Data Import Wizard. The Data Import Wizard makes it easy to import data formany standard Salesforce objects, including accounts, contacts, leads, solutions, campaign members, and person accounts. You can also import data for custom objects. You can import up to 50,000 records at a time.
-
Hii Anjali,
Auto response rule in Salesforce. An auto-response ruleis a set of conditions for sending automatic email responsesto lead or case submissions based on the attributes of the submitted record. Applicable leads include those captured through a Web-to-Lead form.
-
Hii Sumit,
A report is a list of records that meet the criteria you define. It's displayed in Salesforce in rows and columns, and can be filtered, grouped, or displayed in a graphical chart. Every report is stored in a folder. Folders can be public, hidden, or shared, and can be set to read-only or read/write.
-
Marziya
MemberJanuary 31, 2020 at 5:58 pm in reply to: Do permission sets override profiles in Salesforce?Heelo Ratnesh,
Since permission sets can only add access, a well-set up permission set contains only the specific permissions that it adds to a foundation profile. ... Profiles assign a default record type for new records created by a user, and permission sets cannot override this
-
Marziya
MemberJanuary 31, 2020 at 5:57 pm in reply to: What is the differentiate between Local id and Global id in Salesforce Lightning?Hello Kirandeep,
You can retrieve a component using its local ID in your JavaScript code. A global ID can be useful to differentiate between multiple instances of a component or for debugging purposes. A local ID is an ID that is only scoped to the component. A local ID is often unique but it's not required to be unique.
-
Marziya
MemberJanuary 31, 2020 at 5:56 pm in reply to: Why do we use permission sets in Salesforce?Hii Ratnesh,
The settings and permissions in permission sets are also found in profiles, but permission sets extend users' functional access without changing their profiles.