Nikita
IndividualForum Replies Created
-
Hi,
The connectedCallback()lifecycle hook fires when a component is inserted into the DOM.
-
Nikita
MemberOctober 1, 2019 at 4:52 am in reply to: Define Object relationship overview in salesforce?Hi Piyush,
Create relationships to link objects with each other, so that when your users view records, they can also see related data. For example, link a custom object called “Bugs” to cases to track product defects that are associated with customer cases.
You can define different types of relationships by creating custom relationship fields on an object. Different types of relationships between objects in Salesforce determine how they handle data deletion, sharing, and required fields in page layouts.
Master-detail: Closely links objects together such that the master record controls certain behaviors of the detail and subdetail record.
Many-to-many: You can use master-detail relationships to model many-to-many relationships between any two objects. A many-to-many relationship allows each record of one object to be linked to multiple records from another object and vice versa.
Lookup: Links two objects together. Lookup relationships are similar to master-detail relationships, except they do not support sharing or roll-up summary fields.
External lookup: An external lookup relationship links a child standard, custom, or external object to a parent external object. When you create an external lookup relationship field, the standard External ID field on the parent external object is matched against the values of the child’s external lookup relationship field. External object field values come from an external data source.
Indirect lookup: An indirect lookup relationship links a child external object to a parent standard or custom object. When you create an indirect lookup relationship field on an external object, you specify the parent object field and the child object field to match and associate records in the relationship. Specifically, you select a custom unique, external ID field on the parent object to match against the child’s indirect lookup relationship field, whose values come from an external data source.
Hierarchical: A special lookup relationship available for only the user object. It lets users use a lookup field to associate one user with another that does not directly or indirectly refer to itself. For example, you can create a custom hierarchical relationship field to store each user's direct manager.
-
Nikita
MemberOctober 1, 2019 at 4:45 am in reply to: When is page layout assignment used in salesforce?Hi Piyush,
The page layout determines the buttons, fields, related lists, and other elements that users with this profile see when creating records with the associated record type. Since all users can access all record types, every record type must have a page layout assignment, even if the record type isn't specified as an assigned record type in the profile.
-
Nikita
MemberOctober 1, 2019 at 4:34 am in reply to: How many types of Salesforce licenses are there?Hi Piyush,
Salesforce provides the following types of licenses and usage-based entitlements.
User Licenses
A user license determines the baseline of features that the user can access. Every user must have exactly one user license. You assign user permissions for data access through a profile and optionally one or more permission sets.Permission Set Licenses
A permission set is a convenient way to assign users specific settings and permissions to use various tools and functions. Permission set licenses incrementally entitle users to access features that are not included in their user licenses. Users can be assigned any number of permission set licenses.Feature Licenses Overview
A feature license entitles a user to access an additional feature that is not included with his or her user license, such as Marketing or Work.com. Users can be assigned any number of feature licenses.Usage-based Entitlements
A usage-based entitlement is a limited resource that your organization can use on a periodic basis—such as the allowed number of monthly logins to a Partner Community or the record limit for Data.com list users. -
Hi,
To read Salesforce data, Lightning web components use a reactive wire service. When the wire service provisions data, the component rerenders. Components use @wire in their JavaScript class to specify a wire adaptor or an Apex method.
Wire Service is reactive. So, it works asynchronously. But the page renders based on the values retrieved.
You cannot chain Wire Service methods. Use dynamic binding instead.
LWC is only for Salesforce applications.
-
Hi,
Lightning web components can import methods from Apex classes. The imported methods are functions that the component can call either via@wire or imperatively.
-
Nikita
MemberSeptember 26, 2019 at 11:45 am in reply to: What is the use of 'with sharing' and 'without sharing' keywords in Salesforce?Hi,
with sharing: The with sharing keyword allows you to specify that the sharing rules for the current user are considered for the class. You have to explicitly set this keyword for the class because Apex code runs in a system context. In the system context, Apex code has access to all objects and fields— object permissions, field-level security, sharing rules aren’t applied for the current user.
Use the with sharing keywords when declaring a class to enforce the sharing rules that apply to the current user. For example:
public with sharing class sharingClass { // Code here }
without sharing: Use the without sharing keywords when declaring a class to ensure that the sharing rules for the current user are not enforced. For example, you can explicitly turn off sharing rule enforcement when a class is called from another class that is declared using with sharing.
public without sharing class noSharing { // Code here }
-
Nikita
MemberSeptember 26, 2019 at 11:41 am in reply to: What are the benefits of using Salesforce CRM?Hi Laveen,
Core Features of Salesforce CRM
- Contact Management
- Customer Engagement Tools
- Workflow Creation
- Task Management
- Opportunity Tracking
- Collaboration Tools
- Analytics
- Intuitive, Mobile-Ready Dashboard
-
Nikita
MemberSeptember 26, 2019 at 6:37 am in reply to: How can i use offset in rest API in Salesforce?Hi Piyush,
When expecting many records in a query’s results, you can display the results in multiple pages by using the OFFSET clause on a SOQL query. For example, you can use OFFSET to display records 51–75 and then jump to displaying records 301–350. Using OFFSET is an efficient way to handle large results sets.
Use OFFSET to specify the starting row offset into the result set returned by your query. Because the offset calculation is done on the server and only the result subset is returned, using OFFSET is more efficient than retrieving the full result set and then filtering the results locally. OFFSET is available in API version 24.0 and later.SELECT fieldList FROM objectType [WHERE conditionExpression] ORDER BY fieldOrderByList LIMIT numberOfRowsToReturn OFFSET numberOfRowsToSkip
As an example, if a SOQL query normally returned 50 rows, you could use OFFSET 10 in your query to skip the first 10 rows:
SELECT Name FROM Merchandise__c WHERE Price__c > 5.0 ORDER BY Name LIMIT 100 OFFSET 10
-
Nikita
MemberSeptember 26, 2019 at 6:33 am in reply to: What is the use of the invocable method annotation in Salesforce?Hi Prachi,
InvocableMethod annotation is used to identify methods that can be run as invocable actions.Invocable methods are called with the REST API and used to invoke a single Apex method. Invocable methods have dynamic input and output values and support describe calls.
-
Nikita
MemberSeptember 25, 2019 at 11:16 am in reply to: How can we navigate from one component to another component ?Hi Hariom,
Please refer the below example.
Here I have got two components named, Main.cmp and C1.cmp. You can navigate from Main.cmp to C1.cmp using the below snippets.
main.cmp
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes"> <ui:button label="Navigate to C1" press="{!c.Navigate}"/> {!v.body} </aura:component>
MainController.js
({ Navigate : function(component, event, helper) { $A.createComponent( "c:C1", { }, function(newCmp){ if (component.isValid()) { var body = component.get("v.body"); body.push(newCmp); component.set("v.body", body); } } ); } })
C1.cmp
<aura:component > Component C1 Successfully Loaded ! ! ! </aura:component>
-
Nikita
MemberSeptember 25, 2019 at 9:18 am in reply to: What is the Difference between Lightning tags and Force tags?Hi Hariom,
A lightning tag has inbuilt SLDS we do not need to put extra effort to improve the look and feel, We can handle bad input and provide user validations. The lightning namespace components are optimized for common use cases. Beyond being equipped with the Lightning Design System styling, they handle accessibility, real-time interaction, and enhanced error messages.
force tags works as apex:inputField tags work on the VF page. For example, if we are using forceInputField for the picklist field then it will show the input in picklist format with the respected values. It also supports the lookup/master input fields
-
Nikita
MemberSeptember 25, 2019 at 7:59 am in reply to: How many callouts to external service can be made in a single salesforce Apex transaction?Hi Laveena,
As per the Salesforce Documentation A single Apex transaction can make a maximum of 100 callouts to an HTTP request or an API call.
-
Nikita
MemberSeptember 25, 2019 at 7:58 am in reply to: How can you expose an Apex class as a REST WebService in Salesforce?Hi Laveena,
Apex class and methods can be exposed for external applications access and your application through the REST architecture. Use @RestResource annotation with Apex class to expose it as a REST resource.
-
Nikita
MemberSeptember 25, 2019 at 7:55 am in reply to: What types of app we can create in Salesforce?Hi Laveen,
App that can be Built using Salesforce are :
1. Recruiting App
Hire top talent by automating and tracking every interaction, interview stage, and follow-up.2. Deliveries App
Turn drivers into sales and service heroes who deliver on time.3. Inspection App
Log and verify inspections on a mobile phone; report on inspections instantly.4. Employee Onboarding App
Recruit, train, and manage new hires faster than ever, turning hires to profits sooner.5. Budgeting App
Manage budget approvals and expenses down to the last penny.6. Inventory App
Maximize revenue by managing the day’s inventory on hand with total transparency.7. Projects App
Manage key projects with a few clicks.8. Contracts App
Manage all of a company’s contracts in a single app, accessible anywhere.9. Social Intranet App
Connect employees with critical information across any device in a social network.10. Clienteling App
Connect store associates to their customers; give them a 360-degree view of customers. -
Hi Laveena,
A Dashboard in Salesforce is a visual show of key metrics and trends for records in your Org. The relationship between the two that is Salesforce Dashboard part and report is 1:1; for each dashboard component in Salesforce, there’s only one underlying Salesforce Report. However, you’ll be able to use a similar report in multiple dashboard components on one dashboard (e.g., use the same report in both a bar chart and pie chart). All the Multiple components of the dashboard will be shown along on one dashboard page layout, creating a strong visual display and some way to consume multiple reports that often have a typical theme, like sales performance, client support, etc.
-
Hi Laveena,
You can use email services to process the contents, headers, and attachments of inbound email. For example, you can create an email service that automatically creates contact records based on the contact information in messages.
To use email services, from Setup, enter Email Services in the Quick Find box, then select Email Services. Click New Email Service to define a new email service.
- Select an existing email service to view its configuration, activate or deactivate it, and view or specify addresses for that email service.
- Click Edit to make changes to an existing email service.
- Click Delete to delete an email service.
-
Hi Laveena,
Apex Scheduler is used to invoke Apex classes to run at specific times, first implement the Schedulable interface for the class, then specify the schedule using either the Schedule Apex page in the Salesforce user interface or the System.schedule method.
-
Hi Hariom.
We can call apex class in below mentioned ways
- From another class
- From Trigger
- From Visualforce page
- From Developer console
- Form JavaScript button, Links
- From Home page components
-
Nikita
MemberSeptember 24, 2019 at 7:39 am in reply to: Explain the syntax and use of PolicyCondition in salesforce. Evaluate method.Hi Laveena,
The main purpose of the evaluate method is to evaluate the event against the transaction security policy. Following is the signature for this method
public Boolean evaluate(TxnSecurity.Event event)
Based on the evaluation result it will either return true or false.
-
Nikita
MemberSeptember 24, 2019 at 7:36 am in reply to: What is “View all” and “Modify all” permission ?Hi Hariom,
When you grant “View All” or “Modify All” for an object on a profile or permission set, you grant any associated users access to all records of that object regardless of the sharing and security settings.
The “View All” and “Modify All” permissions ignore sharing rules and settings, allowing administrators to grant access to records associated with a given object across the organization. “View All” and “Modify All” can be better alternatives to the “View All Data” and “Modify All Data” permissions.
-
Nikita
MemberSeptember 23, 2019 at 1:01 pm in reply to: What is the main difference between data table vs page block table tags in salesforce?Hi Laveena,
PageBlockTable:
PageBlockTable should be defined inside pageblock or pageblocksection.
PageBlockTable uses standard styles sheets to design a visualpage.
It has the required attribute “value”.
Column headers will be displayed automatically.DataTable:
No need to write inside pageblock or pageblocksection.
There is no required value.
The data can be displayed using custom style sheets.we need to specify column headers explicitly.
Thanks.
-
Nikita
MemberSeptember 23, 2019 at 12:26 pm in reply to: What is External lookup in S child standard,alesforce?Hi Piyush,
An external lookup relationship links a child standard, custom, or external object to a parent external object.
External objects are similar to custom objects, except that they map to data located outside Salesforce. Each external object relies on an external data source definition to connect with the data outside Salesforce. Each external object definition maps to a table that contains the data, and the object fields map to accessible table columns. The data in the external table can be searched and referenced in Salesforce using custom tabs and federated search.
-
Nikita
MemberSeptember 23, 2019 at 12:24 pm in reply to: How to set the Login hours and Login IP ranges to the users in Salesforce?Hi Piyush,
To set the login IP ranges to users in Salesforce, follow these steps:
- From Setup, enter Profiles in the Quick Find box, then select Profiles.
- Select a profile, and click its name.
- In the profile overview page, click Login IP Ranges.
- Specify allowed IP addresses for the profile.
- To add a range of IP addresses from which users can log in, click Add IP Ranges. Enter a valid IP address in the IP Start Address and a higher-numbered IP address in the IP End Address field. To allow logins from only a single IP address, enter the same address in both fields.
- To edit or remove ranges, click Edit or Delete for that range.
- Optionally enter a description for the range. If you maintain multiple ranges, use the Description field to provide details, like which part of your network corresponds to this range.
To set the login hours to users in Salesforce, follow these steps:
- From Setup, enter Profiles in the Quick Find box, and select Profiles.
- Select a profile, and click its name.
- In the profile overview page, click Login Hours.
- Set up the time schedule.
-
Nikita
MemberSeptember 23, 2019 at 12:16 pm in reply to: How many ways to call the Apex class in salesforce?Hi Piyush,
We can call apex class in below mentioned ways
- From another class
- From Trigger
- From Visualforce Page
- From Developer console
- Form JavaScript button, Links
- From Home page components