MOHIT
IndividualForum Replies Created
-
Queues are groups of users who can own records. All records in Salesforce must have an owner. An owner is a single entity, queues allow for certain objects to have groups of users own the record.
-
MOHIT
MemberMay 27, 2020 at 3:02 pm in reply to: How to get current record id in the Salesforce lightning component?Getting current record id in lightning web component(lwc) is very easy.
If a component with a recordId property is used on a Lightning record page, the page sets the property to the ID of the current record. In the component’s JavaScript class, use the @api decorator to create a public recordId property. Here is example of javascript class.import { LightningElement, api } from 'lwc';
export default class LWCExample extends LightningElement {
@api recordId;
}
To get current record id in lightning component(aura component), we had to implement force:hasRecordId to get record id in lightning aura component. But in lightning we component its very simple, we only need to use recordId property with @api decorator. -
In a packaging context, a namespace prefix is a one to 15-character alphanumeric identifier that distinguishes your package and its contents from packages of other developers on AppExchange. Namespace prefixes are case-insensitive. For example, ABC and abc are not recognized as unique. Your namespace prefix must be globally unique across all Salesforce organizations. It keeps your managed package under your control exclusively.
-
MOHIT
MemberMay 27, 2020 at 2:55 pm in reply to: Can you have a Roll-up Summary field in the case of a Master–Detail RelationshipYes. You can have a roll-up summary in case of a master-detail relationship. But not in case of a lookup relationship.
A roll-up summary field is used to display a value in a master record based on the values of a set of fields in a detail record. The detail record must be related to the master through a master-detail relationship.
There are 4 calculations that you can do using roll-up summary field. You can count the number of detail records related to a master record. Or, you can calculate the sum, minimum value, or maximum value of a field in the detail records. -
MOHIT
MemberMay 26, 2020 at 4:06 pm in reply to: Can I delete Multiple Account or contact without using Apex OR Script?Mass Delete Records
1. Setup –> Data Management –> Mass Delete Records
2. To delete records that belong to the Standard Object Like: Accounts, Leads, Contacts, Cases, Solutions, Activities and Products
3. Pick the record type you wish to mass delete. Then examine the data you’re looking to delete; remember that this is generally undo-able, so pick wisely.
4. Specify conditions/filters for the times selected.
5. You may check the options to delete the appropriate records: archived records, accounts with other attached accounts.. etc
6. Choose “Search” to find the matches based on the conditions
7. Select the boxed next to the record you want to delete; alternatively, you can click on the header to select all.
8. If needed, you may select the “Permanently Delete” records.
9. Click “Delete”. -
Locker Service is a powerful security architecture for Lightning components. Locker Service enhances security by isolating Lightning components that belong to one namespace from components in a different namespace. Locker Service also promotes best practices that improve the supportability of your code by only allowing access to supported APIs and eliminating access to non-published framework internals.
-
You need to pass a String to your constructor and execute the batch by passing the batch instance and scope number.
-
In Salesforce, Notes and attachments are used to enter some comments or add external documents along with the Salesforce records. Notes in Salesforce provide the functionality to enter some text which are not mentioned in other fields. Attachments on the other hand, are external documents attached to a record.
-
ContentDocumentLink: This object will share the files with Users, Records, Groups etc. You can create multiple records to attach the same files under multiple records.
-
MOHIT
MemberMay 25, 2020 at 4:33 am in reply to: What is relation relation between content version and content document?Content Document: It Represents a document that has been uploaded to a library in Salesforce CRM Content or Salesforce Files. The maximum number of documents that can be published is 30,000,000. This object record you don’t have to create. It gets created when you create ContentVersion which is the child of ContentDocument.
Content Version: Represents a specific version of a document in Salesforce CRM Content or Salesforce Files. In other words, this object stores document information similar like Attachment.- This reply was modified 4 years, 6 months ago by MOHIT.
-
MOHIT
MemberMay 21, 2020 at 3:06 pm in reply to: Is it possible to prevent users from reassigning approval requests in SalesforceThere is currently no way to prevent an authorized approver from re-assigning an approval request to an unauthorized approver/SF user, because there is no way for administrators to remove or restrict the ability of approvers to reassign approval requests.
-
MOHIT
MemberMay 21, 2020 at 3:03 pm in reply to: What are the different types of email templates that can be createdSalesforce provides 4 email template types. Here’s an overview of the different types and some considerations.
1. Text Email Templates
2. HTML (Using Letterhead) Email Templates
3. Custom (without using Letterhead)
4. Visualforce -
MOHIT
MemberMay 21, 2020 at 3:02 pm in reply to: Can we have a roll-up summary field in case of a Master-detail relationship?Yes. You can have a roll-up summary in case of a master-detail relationship. But not in case of a lookup relationship.
A roll-up summary field is used to display a value in a master record based on the values of a set of fields in a detail record. The detail record must be related to the master through a master-detail relationship.
There are 4 calculations that you can do using roll-up summary field. You can count the number of detail records related to a master record. Or, you can calculate the sum, minimum value, or maximum value of a field in the detail records. -
MOHIT
MemberMay 20, 2020 at 3:22 pm in reply to: How to retrieve data from multiple Objects in one query ?SELECT (SELECT Obj1__r.Name FROM Junction1__r),
(SELECT Obj3__r.Name FROM Junction2__r),
Name
FROM Obj2__c
WHERE Id IN (SELECT Obj2__c FROM Junction1__c WHERE Obj1__c = 'some-id-here') -
MOHIT
MemberMay 20, 2020 at 3:11 pm in reply to: Can we include one lightning component to another?Yes, you can include one lightning component to another as a parent and child component.
-
MOHIT
MemberMay 20, 2020 at 3:10 pm in reply to: What is the use of force:hasRecordId in Salesforce?This interface is used to indicate that a component takes a record (SObject) as an attribute.
-
MOHIT
MemberMay 19, 2020 at 3:48 pm in reply to: How to display the list of attachments of Custom object in Salesforce?To see all attachments on a record, ensure that the Notes & Attachments related list is added to each of your page layouts. To do this, click on Setup, open the Object Manager and select the Object you'll be using. From the left panel, select Page Layouts.
Click on the Related Lists section and drag the Notes & Attachments Related List into the Page Layout if it is not already there. -
MOHIT
MemberMay 19, 2020 at 3:18 pm in reply to: Can we use sharing rules to restrict data access in Salesforce?Sharing rules are for opening access to the records not for restricting.
-
MOHIT
MemberMay 19, 2020 at 3:09 pm in reply to: What are Login Hours and Login IP Ranges in Salesforce?You can restrict the hours during which users can log in and the range of IP addresses from which they can log in and access Salesforce. If IP address restrictions are defined for a user’s profile and a login originates from an unknown IP address, Salesforce does not allow the user to log in. These restrictions help protect your data from unauthorized access and phishing attacks.
Login Hours
For each profile, you can set the hours when users can log in. See:
View and Edit Login Hours in the Enhanced Profile User Interface
View and Edit Login Hours in the Original Profile User Interface
Login IP Address Ranges
For Enterprise, Performance, Unlimited, Developer, and Database.com editions, you can set the Login IP Range addresses from which users can log in on an individual profile. Users outside the login IP range can’t access your Salesforce org.
For Contact Manager, Group, and Professional Editions, set the Login IP Range. To set the range, from Setup, enter Session Settings in the Quick Find box, then select Session Settings. -
MOHIT
MemberMay 19, 2020 at 3:02 pm in reply to: Is it possible to create sharing rules for detail object in Salesforce?Yes you cant create sharing rule on detail side of the object.Child objects don’t have a share-record of their own and will be shared along with the master record.
-
MOHIT
MemberMay 19, 2020 at 3:00 pm in reply to: What is the maximum size of the PDF generated on visualforce attribute renderAsThe maximum response size when creating a PDF file must be less than 15 MBbefore being rendered as a PDF file.
-
Workflow lets you automate standard internal procedures and processes to save time across your org. Many of the tasks you normally assign, the emails you regularly send, and other record updates are part of your organization’s standard processes. Instead of doing this work manually, you can configure workflow rules to do it automatically.
Workflow rules can be broken into two main components.
Criteria: the “if” part of the “if/then” statement. In other words, what must be true of the record for the workflow rule to execute the associated actions.
Actions: the “then” part of the “if/then” statement. In other words, what to do when the record meets the criteria. -
Use Tooling API when you need fine-grained access to an org’s metadata. Tooling API’s SOQL capabilities for many metadata types allow you to retrieve smaller pieces of metadata. Smaller retrieves improve performance, which makes Tooling API a better fit for developing interactive applications.
-
MOHIT
MemberMay 18, 2020 at 3:58 pm in reply to: Why more developers should consider Lightning Web Components in Salesforce?Huge demand for skilled developers
Today, the need for Salesforce developers is huge. However, finding the right and best developer is often one of the most challenging tasks faced by the IT industry. More skilled professionals would help relieve the client’s anxiety by dealing with business issues more efficiently.
The biggest advantage of having more talented and certified Salesforce developers is that they will be able to delegate the tasks adequately. Developers can leverage lightning web components and take a big step forward for accelerating component-based development. Based on modern, standard-based javascript, LWC allows developers to use the tool to build components for lightning using standards-based tools.
Less Training of framework
Before using LWC, web developers had to learn about the Aura framework to build custom web applications. When Salesforce launched the lightning framework, they were in search of the programming model that could support large scale client-side applications. So, when Salesforce couldn’t find the right programming model, they introduce their own programming model (Aura component) to support the Lightning Framework.
But when Aura programming model came into power, it has its own challenges. Nevertheless, frameworks such as React, Angular, and Lightning are all JavaScript frameworks, the skills were not transferable to the Aura model. These were the major issue noticed by Salesforce and there was a need for moving towards open web standards that address some of the technical debts. With the announcement of LWC, today’s web stack looks completely new and interactive and focuses more on web standards and less on the framework.
LWC and Aura can work together
LWC and Aura use Lightning Data services to get engage with the Salesforce Platform. With the introduction of LWC, Salesforce now has two programming models for building lightning components. Well, in some cases, Aura and LWC components can even be merge in a single page and can share the same data.
Aura and LWC can interact with each other and their child components through events. Aura uses the Application and Components event to communicate with child communicate or other Aura components. LWC utilizes Custom events to communicate with Aura Components.
Better security support and services
Lightning Locker service is a robust security architecture for lightning components. Lightning locker enhances security by wrapping each lightning component in its own container and allowing developers to manage access to APIs and framework internals. Locker service is enabled by default for all custom LWC. It promotes JavaScript security best practices for securing their Lightning web components and improving the supportability of your code.
Systematic Testing & Standardized Support
Jest is a powerful and delightful JavaScript Testing Framework created by Facebook, with customized features for creating javascript tests. Salesforce has given developers an extension of the Jest Framework for writing unit tests for Lightning web components. This testing framework can execute from a local machine, a command line, or a Visual Studio Code. -
MOHIT
MemberMay 18, 2020 at 3:57 pm in reply to: How Salesforce Integration helps improve business performance in Salesforce?1. Secure fresh customer insights
Companies can integrate Salesforce with other customer-focused platforms, such as NetSuite and Microsoft Dynamics, along with internal customer databases. This allows them to leverage sophisticated reporting on customer usage of their products and services, enabling account managers to offer support when usage is decreasing or endorse new products or add-on services when usage is high.
2. Streamline processes
Integrating other systems with Salesforce can bring new levels of efficiency to processes that span different departments. Enrollment and tuition payment process for universities are a perfect example. Salesforce integration provides for a single view of student data, eliminating traditional bottlenecks to the admission cycle.
3. Uncover key content
When companies make frequent updates to sophisticated software, their customers can be left with substantial amounts of data to sift through. To make it easier for them to understand the critical updates made in each product release, software vendors can connect Salesforce to issue and product tracking software, enabling customers to focus on release notes that are relevant to them.
4. Connected customers
By connecting Salesforce with backend systems, wireless network providers can accelerate the provisioning of networks of any size, from those serving big events like Dreamforce to neighborhood cafes. This allows wireless network customers (and their customers) to secure online access quickly and efficiently.
5. Uncover and recover lost revenue
When a company provides products on loan to new customers, tracking products and servicing existing customers under warranty can become a challenge without the proper systems in place. Integrating Salesforce with a field service solution and ERP system delivers the visibility necessary to restore warranty service revenue.
6. Manage intricate subscription billing
A restaurant analytics platform’s customers relied on their solution to provide insight on how each section (bar, dining room, patio, etc.) of each of their establishments is running. By integrating business management software and Salesforce, they were able to bill their customers appropriately utilizing intricate parent-child relationships.
7. Enable real-time bidding
An innovative transportation management solution leverages integration to match shipments and shippers in real time through Salesforce. The moment a shipping bid has been accepted, the company is notified in real time via a truck horn.
8. Accept payments universally
Customers using public transportation can refill their transit cards to pay for rides through a range of options, via the integration between a smart chip in the card and the various systems – including Salesforce and Oracle E-Business Suite – that manage the payments.