Kirandeep
IndividualForum Replies Created
-
The force:hasRecordId interface does two things to a component that implements it.
- It adds an attribute named recordId to your component.
- When your component is invoked in a record context in Lightning Experience or the Salesforce app, the recordId is set to the ID of the record being viewed.
-
Kirandeep
MemberMay 1, 2020 at 2:01 PM in reply to: can we lock record using SOQL so that it cannot be modified by other user.Hi Anuj,
Yes we can lock record by using FOR UPDATE clause .
like this :-
Account[] accts = [SELECT Id FROM Account LIMIT 2 FOR UPDATE]; -
Custom labels enable developers to create multilingual applications by automatically presenting information (for example, help text or error messages) in a user's native language. Custom labels are custom text values that can be accessed from Apex classes, Visualforce pages, or Lightning components.
-
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. ... This data can then be used by formula fields, validation rules, flows, Apex, and the SOAP API.
-
Kirandeep
MemberMay 1, 2020 at 1:13 PM in reply to: How long is data stored in the recycle bin in Salesforce?Deleted data is only available for 15 days.After 15 days, data is permanently deleted from the Recycle Bin.
-
Hi Marziya ,
Valueof() is a predefined function of Decimal Class which converts the value into decimal .
for example :-
-valueOf(doubleToDecimal)
Returns a Decimal that contains the value of the specified Double.
-valueOf(longToDecimal)
Returns a Decimal that contains the value of the specified Long.
-valueOf(stringToDecimal)
Returns a Decimal that contains the value of the specified String. As in Java, the string is interpreted as representing a signed Decimal. -
Global variables are defined as a special type of merge fields provided by the Salesforce referencing the data in your organization. These are used to access and display the user and organization information, perform standard actions on records such as creation, deletion etc
-
Kirandeep
MemberApril 30, 2020 at 11:39 AM in reply to: What are the different data types used in Salesforce?Apex supports the following data types −
- Primitive (Integer, Double, Long, Date, Datetime, String, ID, or Boolean)
- Collections (Lists, Sets and Maps) (To be covered in Chapter 6)
- sObject
- Enums
-
Use of debug logs to track events that occur in your org. Debug logs are generated when you have active user-based trace flags, when you run Apex tests, and when executed code or API requests include debugging parameters or headers.
To view a debug log, from Setup, enter Debug Logs in the Quick Find box, then select Debug Logs. Then click View next to the debug log that you want to examine. Click Download to download the log as an XML file. -
Kirandeep
MemberApril 29, 2020 at 2:01 PM in reply to: Explain the advantages of Salesforce using the SaaS platform ?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.
-
Kirandeep
MemberApril 29, 2020 at 1:58 PM in reply to: What are Workflows in Salesforce? What are Actions in a Workflow?Workflow in Salesforce is basically a container or business logic engine which automates certain actions based on particular criteria. If the criteria are met, the actions get executed. When they are not met, records will get saved but no action will get executed.
A workflow action, such as an email alert, field update, outbound message, or task, fires when the conditions of a workflow rule are met. Email Alert : Email alerts are actions that send emails, using a specified email template, to specified recipients. -
Trigger.New is context Variables which returns records in List.
Trigger.New => works for the New values that are entering either it may be Insert or Update. -
trigger.old is context variable which returns records in List's.
Trigger.Old=>works for the old values that are already in the Fields, it may be to Delete or Update the records -
Kirandeep
MemberApril 28, 2020 at 12:32 PM in reply to: What is needed for data mapping in Salesforce?In order to figure out how the data needs to be formatted, or mapped, it is essential to build a data mapping document. The data mapping document must include specifically the source and target data mappings. It must also include the primary key of all tables in source system.
-
Test Web Service Callouts. Generated code is saved as an Apex class containing the methods you can invoke for calling the web service. To deploy or package this Apex class and other accompanying code, 75% of the code must have test coverage, including the methods in the generated class. ... setMock method.
-
An Apex transaction represents a set of operations that are executed as a single unit. All DML operations in a transaction either complete successfully, or if an error occurs in one operation, the entire transaction is rolled back and no data is committed to the database.
-
Kirandeep
MemberApril 27, 2020 at 2:01 PM in reply to: What is meant by quick action in Salesforce?Quick actions enable users to do more in Salesforce and in the Salesforce mobile app. With custom quick actions, you can make your users' navigation and workflow as smooth as possible by giving them convenient access to information that's most important.
-
An indirect lookup relationship is a new field type introduced with Salesforce Connect. It links an external object to a standard or custom object in the same way that a regular lookup relationship links standard or custom objects.
-
Kirandeep
MemberApril 24, 2020 at 12:07 PM in reply to: What are retrieve and deploy in Salesforce?Deploying and Retrieving Metadata. Use the deploy() and retrieve() calls to move metadata (XML files) between a Salesforce organization and a local file system.
-
Kirandeep
MemberApril 24, 2020 at 12:04 PM in reply to: Can you edit an apex trigger/ apex class in production environment? Can you editHi sumit ,
No, it is not possible to edit apex classes and triggers directly in production environment. It needs to be done first in Developer edition or testing org or in Sandbox org. ... However, Visualforce pages can be created and edited in both sandbox and in production. -
Kirandeep
MemberApril 23, 2020 at 1:24 PM in reply to: What is the use of an outbound message in Salesforce?Outbound messaging allows you to specify that changes to fields within Salesforce can cause messages with field values to be sent to designated external servers. Outbound messaging is part of the workflow rule functionality in Salesforce.
-
Apex runtime engine strictly enforces limits to ensure that runaway Apex code or processes don't monopolize shared resources.
-
Kirandeep
MemberApril 23, 2020 at 1:20 PM in reply to: What are the different types of constructor in apex of Salesforce?Types of Constructor in Apex programming.
Default Constructor.
Non-parameterized Constructor.
Parameterized Constructor. -
Remote action function in salesforce allows user to access any method from any class through javasrcipt methods, and get the result as a javascript object for further manipulation. ... Remote action method should have @RemoteAction annotation
-
Kirandeep
MemberApril 22, 2020 at 2:13 PM in reply to: Difference between Custom Setting and Custom meta data in salesforce ?Custom Settings have the same permission to edit the records and to edit the configuration. Both can be done with the "Configure Application" permission. With Custom Metadata, you can edit the records with "Configure Application" but you require "Author Apex" to edit the configuration.