Nikita
IndividualForum Replies Created
-
Nikita
MemberNovember 12, 2019 at 6:34 am in reply to: How to move from current record to next record of the list on button click using lightning component in Salesforce?Hi Prachi,
Can you please explain what is your exact requirement?
-
Nikita
MemberNovember 12, 2019 at 6:31 am in reply to: What is the maximum number of Components available on a Dashboard in Salesforce?Hi Piyush,
Each dashboard can have up to 20 components.
-
Nikita
MemberNovember 12, 2019 at 6:29 am in reply to: what type of report cannot be used to run a dashboard report in Salesforce and why?Hi Piyush
The tabular reports cannot be used to run a dashboard report in salesforce. Tabular reports are the simplest and fastest way to look at data. Similar to a spreadsheet, they consist simply of an ordered set of fields in columns, with each matching record listed in a row. Tabular reports are best for creating lists of records or a list with a single grand total. They can't be used to create groups of data or charts, and can't be used in dashboards unless rows are limited. It displays just the row of records in a table-like format with the grand total. That is why Tabular reports cannot be used for generating dashboards.
-
Nikita
MemberNovember 12, 2019 at 6:24 am in reply to: In what ways leads can be captured with Salesforce?Hi Piyush,
Lead can be captured with salesforce by
- Web to Lead
- Lead Import
-
Nikita
MemberNovember 11, 2019 at 4:32 pm in reply to: How to Provide unfilled public report folders to access in Salesforce?Hi Prachi,
The Unfiled Public Report Folder in classic is also known as the Public Report Folder in Lightning Experience, is another special report folder. Reports stored in this report folder are accessible by all the users. If you also have permission to create and customize the report, then you will be able to store the reports in this folder.
-
Nikita
MemberNovember 11, 2019 at 4:03 pm in reply to: When a new lead is created How to add existing Campaign in Lead Campaign Field using Process Builder in Salesforce?Hi Prachi,
- Open Process Builder:
- Salesforce Classic: Setup | Create | Workflows & Approvals | Process Builder
- Lightning Experience: Gear icon | Setup | Platform Tools | Process Automation | Process Builder
- Click on New | Enter Process Name. Then click Save.
- Click Add Object. Select Lead.
- Select when you need to start the process: only when a record is created or when a record is created or edited.
- Click Save.
- Set criteria:
- Enter a Criteria Name (something like Attach Lead to Campaign).
- Criteria for Executing Actions: Enter the Conditions that must be met for the lead to be added to the campaign if any, otherwise select No criteria—just execute the actions!
- Click Save.
- Add Immediate Actions:
- Select the Create a Record Action Type.
- Enter an Action Name.
- Select Record Type: Campaign Member.
- Set Field Values:
- Campaign Id: 15 digit Id of the Campaign (You will find the Id in the URL of the campaign record).
- Lead Id (Type: Reference): [Lead].Id
- Note: No need to set criteria for any other fields unless they are required in the Campaign Member records.
- Save the Process.
- Open Process Builder:
-
Nikita
MemberNovember 11, 2019 at 3:56 pm in reply to: How to use hyperlink in lightning datatable in salesforce?Hi Prachi,
Following is a sample Code to add hyperlink in Lightning DataTable, please make changes as per your need.
Apex Controller
public class TestClass111 { @AuraEnabled public static List<Account> getAccounts(){ List<Account> acList = new List<Account>(); acList = [Select Id, Name, Website From Account Where Website != NULL LIMIT 10]; return acList; } }
Lightning Component
<aura:component controller="TestClass111" implements="flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" > <aura:attribute name="accountList" type="Account[]"/> <aura:attribute name="columns" type="List"/> <aura:handler name="init" value="{!this}" action="{!c.onInit}"/> <h4>Lightning Data Table</h4> <lightning:datatable data="{!v.accountList}" columns="{!v.columns}" keyField="Id" hideCheckboxColumn="true" /> </aura:component>
Lightning Controller
({ onInit : function(component, event, helper) { var action = component.get("c.getAccounts"); action.setCallback(this, function(response){ if(response.getState() === 'SUCCESS'){ component.set("v.accountList", response.getReturnValue()); var columns = [ {label:'Id', fieldName:'Id', type:'String'}, {label:'Name', fieldName:'Name', type:'String'}, {label:'Website', fieldName:'Website', type: 'url', typeAttributes: { label: 'My Website Name', target:'_blank'}} ]; component.set("v.columns", columns); } else{ alert(response.getState()); } }); $A.enqueueAction(action); } })
-
Nikita
MemberNovember 11, 2019 at 1:37 pm in reply to: What are External ID fields used for in Salesforce?Hi Laveena,
When importing custom objects, solutions, or person accounts, you can use external IDs to prevent duplicate records from being created as a result of the import operation. An external ID is a custom field that has the “External ID” attribute, meaning that it contains unique record identifiers from a system outside of Salesforce.
-
Nikita
MemberNovember 11, 2019 at 1:33 pm in reply to: What is the use of SeeAllData = True in test class in salesforce?Hi Laveena,
use the isTest(SeeAllData=true) annotation to grant test classes and individual test methods access to all data in the organization,
1) If a test class is defined with the isTest(SeeAllData=true) annotation, this annotation applies to all its test methods whether the test methods are defined with the @isTest annotation or the test method keyword
2) The isTest(SeeAllData=true) annotation is used to open up data access when applied at the class or method level -
Nikita
MemberNovember 11, 2019 at 1:32 pm in reply to: What is object relationship overview in salesforce?Hi Laveena,
You can define different types of relationships by creating custom relationship fields on an object. Before you begin creating relationships, determine the type of relationship that suits your needs.Different types of relationships between objects in Salesforce determine how they handle data deletion, sharing, and required fields in page layouts. Let’s review the types of relationships.
Master-detail:Closely links objects together such that the master record controls certain behaviors of the detail and subdetail record. For example, you can define a two-object master-detail relationship, such as Account—Expense Report, that extends the relationship to subdetail records, such as Account—Expense Report—Expense Line Item. You can then perform operations across the master—detail—subdetail relationship.
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.
For example, you create a custom object called “Bug” that relates to the standard case object such that a bug could be related to multiple cases and a case could also be related to multiple bugs.
Lookup: Links two objects together. Lookup relationships are similar to master-detail relationships, except they do not support sharing or roll-up summary fields. With a lookup relationship, you can:
- Link two different objects.
- Link an object with itself. For example, you might want to link a custom object called “Bug” with itself to show how two different bugs are related to the same problem.
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
MemberNovember 11, 2019 at 7:31 am in reply to: Can two users have the same profile? Can two profiles be assigned to the same user in Salesforce?Hi Somendra,
Yes, two users can have the same profile. Take the example of a Sales or Service team in a company. The entire team will be assigned the same profile. The admin can create one profile: Sales Profile, which will have access to the Leads, Opportunities, Campaigns, Contacts and other objects deemed necessary by the company. In this way, many users can be assigned the same profile
No, two profiles can not be assigned to the same user.
-
Nikita
MemberNovember 11, 2019 at 7:27 am in reply to: Can you edit an apex trigger/ apex class in production environment? Can you edit a Visualforce page in Salesforce?Hi Somendra,
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. Then, to deploy it in production, a user with Author Apex permission must deploy the triggers and classes using deployment tools.
However, Visualforce pages can be created and edited in both sandbox and in production.
Only if the page has to do something unique (different values), it would have to be developed via Sandbox.
-
Nikita
MemberNovember 11, 2019 at 7:26 am in reply to: What are the different data types that a standard field record name can have?Hi Somendra,
A standard field record name can have data type of either auto number or text field with a limit of 80 chars.
For generating auto numbers, the format needs to be specified while defining the field and after that for every record that is added, the number will get auto-generated. For example:-
Sr No-{1}
Sr No-{2}
Sr No-{3} -
Nikita
MemberNovember 11, 2019 at 7:24 am in reply to: What is the use of writing sharing rules? Can you use sharing rules to restrict data access?Hi Somendra,
Sharing rules are written to give edit access (public read and write) or public read only access to certain individuals in Sales force org. A classic example is when: – only your managers or superiors need to be given extra credentials to your records in objects as compared to your peers.
By default, all users in your organization will have organization-wide-default sharing settings of either Public Read Only or Private.
To give access to more records, which users do not own, we write sharing rules.
Example: Sharing rules are used to extend sharing access to users in public groups or roles. Hence, sharing rules are not as strict as organization-wide default settings. They allow greater access for those users.As far as the second part of the question is concerned, the answer is no. We cannot use sharing rules to restrict data access. It is only used for allowing greater access to records
-
Nikita
MemberNovember 8, 2019 at 2:35 pm in reply to: Is it possible to schedule a dynamic dashboard in Salesforce?Hi Laveena,
Dynamic dashboard always show data integrated with real-time so we can not scheduled dynamic dashboard.
-
Nikita
MemberNovember 8, 2019 at 2:33 pm in reply to: In how many ways we can share a record in Salesforce?Hi Laveena,
If the Organization-Wide Settings (OWD) in your Salesforce Org is set to anything other than “Public Read/Write” for any of the standard or custom objects then it is more than likely that you will need to setup some sharing rules to share these records with other users. So what are the different ways to share records? Here is a checklist of all the different ways (20 that I could think of) in which you can share records in Salesforce. You can use this as a quick reference guide to help you determine which of these options will be most appropriate to meet your business requirements.
-
Nikita
MemberNovember 8, 2019 at 5:52 am in reply to: What determines whether a user can create a new record using a specific record type in salesforce?Hi Prachi,
The profile determines whether a user can create a new record using a specific record type.
-
Nikita
MemberNovember 8, 2019 at 5:51 am in reply to: What are multiple currencies feature in Salesforce?Hi Prachi,
When the multiple currencies feature is enabled, Corporate currency is used as the basis for all currency conversion rates in salesforce.
-
Nikita
MemberNovember 8, 2019 at 5:46 am in reply to: What kind of workflow action is needed to complete the requirement in Salesforce?Hi Prachi,
Time-Dependent Workflow Action s needed to complete this requirement
-
Nikita
MemberNovember 7, 2019 at 2:36 pm in reply to: Explain the use of DML merge operation in Salesforce?Hi Laveena,
The merge statement merges up to three records of the same sObject type into one of the records, deleting the others, and re-parenting any related records.
The following example merges two accounts named 'Acme Inc.' and 'Acme' into a single record:
List<Account> ls = new List<Account>{new Account(name='Acme Inc.'),new Account(name='Acme')}; insert ls; Account masterAcct = [SELECT Id, Name FROM Account WHERE Name = 'Acme Inc.' LIMIT 1]; Account mergeAcct = [SELECT Id, Name FROM Account WHERE Name = 'Acme' LIMIT 1]; try { merge masterAcct mergeAcct; } catch (DmlException e) { // Process exception here }
-
Nikita
MemberNovember 7, 2019 at 7:50 am in reply to: What are the considerations while configuring a lead conversion process in Salesforce?Hi Prachi,
When you convert qualified leads, Salesforce moves any campaign members to the new contacts. The leads become read-only records unless your administrator gives you permission to edit them. If existing accounts and contacts share the names specified on the leads, you can choose to update the existing accounts and contacts. Salesforce adds information from the lead into empty fields; Salesforce does not overwrite existing account and contact data.
For more detail please refer https://help.salesforce.com/articleView?id=leads_notes.htm&type=5
-
Nikita
MemberNovember 7, 2019 at 7:46 am in reply to: Can you please explain the 15 digit Id and 18 digit Id scenario in Salesforce?Hi Prachi,
ID-15 are Case Sensitive
ID-18 are Case Safeyou can't have 2 separate records with the same ID-18
-
Nikita
MemberNovember 7, 2019 at 7:42 am in reply to: which setting can a system administrator control in the Salesforce user interface?Hi Piyush,
Settings can a system administrator control in the salesforce user interface are following
- Enable Collapsible Sections
- Show Quick Create
- Enable Hover Details
- Enable Related List Hover Links
- Enable Separate Loading of Related Lists
- Enable Separate Loading of Related Lists of External Objects
- Enable Inline Editing
- Enable Enhanced Lists
- Disable Navigation Bar Personalization in Lightning Experience
- Enable Tab Bar Organizer
- Enable Printable List Views
- Enable Spell Checker on Tasks and Events
- Enable Customization of Chatter User Profile Pages
- Change Default Display Density Setting in Lightning Experience
- Enable Lightning Right-to-Left (RTL) Support (Beta)
- Disable Lightning Experience Transition Admin Reminders
-
Nikita
MemberNovember 7, 2019 at 7:29 am in reply to: what are the record type that can be updated when converting a lead in salesforce? -
Nikita
MemberNovember 6, 2019 at 1:03 pm in reply to: Which data can be synched using the new Salesforce for Outlook?Hi Piyush,
contacts, events, and tasks can be synched using the new Salesforce for Outlook