shariq
IndividualForum Replies Created
-
shariq
MemberSeptember 15, 2018 at 10:50 am in reply to: How to activate List and Hierarchy custom settings in Salesforce?Hi,
Admins have the ability to control the List type Custom Setting creation. By default, the "Manage List Custom Settings Type" is disabled, which is why Custom Setting type List is greyed out. To allow the creation of custom settings when using application-level data definitions you'll need to enable Manage List Custom Settings Type.
1. Go to Setup.
2. Click Develop | Custom Settings.
3. Click NEW.
4. Under "Setting Type" click List.By enabling this option, users will have the ability to create List Custom Setting type.
Hope this helps.
-
shariq
MemberSeptember 15, 2018 at 10:48 am in reply to: Why should we go for Salesforce Lightning Component?Hi,
The Lightning Component framework is a UI framework for developing dynamic web apps for mobile and desktop devices. The framework supports partitioned, multi-tier component development that bridges the client and server. It uses JavaScript on the client side and Apex on the server side.
The benefits include an out-of-the-box set of components, event-driven architecture, and a framework optimized for performance.
Out-of-the-Box Component Set
Comes with an out-of-the-box set of components to kick start building apps. You don't have to spend your time optimizing your apps for different devices as the components take care of that for you.
Rich component ecosystem
Create business-ready components and make them available in the Salesforce app, Lightning Experience, and Communities. Salesforce app users access your components via the navigation menu. Customize Lightning Experience or Communities using drag-and-drop components on a Lightning Page in the Lightning App Builder or using Community Builder. Additional components are available for your org in the AppExchange. Similarly, you can publish your components and share them with other users.
Performance
Uses a stateful client and stateless server architecture that relies on JavaScript on the client side to manage UI component metadata and application data. The client calls the server only when absolutely necessary; for example to get more metadata or data. The server only sends data that is needed by the user to maximize efficiency. The framework uses JSON to exchange data between the server and the client. It intelligently utilizes your server, browser, devices, and network so you can focus on the logic and interactions of your apps.
Event-driven architecture
Uses an event-driven architecture for better decoupling between components. Any component can subscribe to an application event, or to a component event they can see.
Faster development
Empowers teams to work faster with out-of-the-box components that function seamlessly with desktop and mobile devices. Building an app with components facilitates parallel design, improving overall development efficiency.
Components are encapsulated and their internals stay private, while their public shape is visible to consumers of the component. This strong separation gives component authors freedom to change the internal implementation details and insulates component consumers from those changes.
Device-aware and cross browser compatibility
Apps use responsive design and provide an enjoyable user experience. The Lightning Component framework supports the latest in browser technology such as HTML5, CSS3, and touch events.Hope this helps.
-
shariq
MemberSeptember 15, 2018 at 10:46 am in reply to: How to add lightning component in Salesforce visualforce page?Hi,
Just follow these steps which i found online -
There are three steps to add Lightning components to a Visualforce page.Add the Lightning Components for
- Visualforce JavaScript library to your Visualforce page using the <apex:includeLightning/> component.
- Create and reference a Lightning app that declares your component dependencies.
- Write a JavaScript function that creates the component on the page using $Lightning.createComponent().
Hope this helps.
-
shariq
MemberSeptember 15, 2018 at 10:45 am in reply to: Why can there only be one trigger for each Salesforce Object?Hi,
There is no limit to write triggers on single sobjects, but best practice is to write one trigger for one sobject and make your functionality in that trigger. Use Context variables and comment the code for more clarity.
Hope this helps.
-
shariq
MemberSeptember 15, 2018 at 10:42 am in reply to: What is the difference between AJAX and REST in Salesforce?Hi,
AJAX stands for asynchronous javascript and XML so if you are using javascript to load data after the browser request has finished you are doing AJAX.
REST on the other hand stands for Representational State Transfer which as Stefan Billet pointed out uses HTTP requests to transfer data.
Hope this helps.
-
shariq
MemberSeptember 15, 2018 at 10:41 am in reply to: Why there is no before-undelete event in Salesforce Triggers?Hi,
To get more clarity -
Triggers fire as the result of an action on an object . With an object that is deleted there are really no before actions you can take, you can only undelete it. The only action available on a deleted object is after you undelete it hence the after undelete.
Hope this helps.
-
Hi,
Salesforce Data APIs. They are REST API, SOAP API, Bulk API, and StreamingAPI. Together they make up the Salesforce data APIs. Their purpose is to let you manipulate your Salesforce data, whereas other APIs let you do things like customize page layouts or build custom development tools.
Web services are of two kinds: Simple Object Access Protocol (SOAP) and Representational State Transfer (REST). SOAP defines a standard communication protocol (set of rules) specification for XML-based message exchange. SOAP uses different transport protocols, such as HTTP and SMTP.
Hope this helps.
-
shariq
MemberSeptember 15, 2018 at 10:38 am in reply to: How to insert null values into Dataloader?Hi,
Here is the tip -
Uncheck the “Insert Null Values” box in Settings! In most cases you’ll want that unchecked so you don’t inadvertently wipe out good data the next time you run the Data Loader.
Hope this help.
-
shariq
MemberSeptember 15, 2018 at 10:34 am in reply to: What is the use of retainAll(ele) in Salesforce?Hi,
retainAll(): Retains only the elements in this set that are contained in the specified list.
Syntax:Set<integer> mySet = new Set<integer>{1, 2, 3};
List<integer> myList = new List<integer>{1, 2, 4, 3};
Boolean result = mySet.retainAll(myList);
System.assertEquals(true, result);Hope this helps.
-
shariq
MemberSeptember 15, 2018 at 10:32 am in reply to: What are fine grained and coarse grained components in Salesforce?Hi,
To get it more simple -
Granularity is the extent to which a system is broken down into small parts, either the system itself or its description or observation. It is the extent to which a larger entity is subdivided. For example, a yard broken into inches has finer granularity than a yard broken into feet.
Coarse-grained systems consist of fewer, larger components than fine-grained systems; a coarse-grained description of a system regards large subcomponents while a fine-grained description regards smaller components of which the larger ones are composed
Hope this helps.
-
shariq
MemberSeptember 15, 2018 at 10:29 am in reply to: What are the meaning and uses of External Objects, Platform Event and BigObjects in Salesforce?Hi,
External objects are similar to custom objects, except that they map to data that's stored outside your Salesforce org. Each external object relies on an externaldata source definition to connect with the external system's data.
Big Objects. Big objects let you store and manage massive amounts of data on the Salesforce platform. ... Big objects capture data for use within Lightning Platform and are accessible via a standard set of APIs to clients and external systems.
Platform events are based on a publish-subscribe architecture. Apps can publish platform events byusing Apex or one of the Salesforce platform APIs (SOAP, REST, or Bulk API). ... Apps can subscribe toevents through Apex triggers or CometD clients. CometD is a scalable HTTP-based event-routing bus.
Hope this helps.
-
shariq
MemberSeptember 15, 2018 at 10:28 am in reply to: How is a site related to community in Salesforce?Hi,
A web community is a web site (or group of web sites) where specific content or links are only available to its members. A web community may take the form of a social network service, an Internet forum, a group of blogs, or another kind of social software web application.
An online community is a group of people with common interests who use theInternet (web sites, email, instant messaging, etc) to communicate, work together and pursue their interests over time.
Now come to salesforce -
Online Community Software from Salesforce Community Cloud. Salesforce Community Cloud is powered by advanced online community software that allows businesses of all sizes to connect to their partners, customers, employees, and business processes like never before.
Hope this helps.
-
shariq
MemberSeptember 15, 2018 at 10:26 am in reply to: Difference between the freeze User and Deactivate user of account in salesforce?Hi,
To make it more simple -
In some cases, you can't immediately deactivate an account, such as when a user is selected in a custom hierarchy field. To prevent users from logging in to your organization while you perform the steps to deactivate them, you can freeze user accounts.
Hope this helps.
-
shariq
MemberSeptember 15, 2018 at 10:25 am in reply to: Explain how Sales Analytics is different than Sales Cloud reporting.Hi,
Sales analytics is the process used to identify, model, understand and predict salestrends and sales results while helping in the understanding of these trends and finding improvement points. ... Relevant data is mined and then analyzed in order to forecast future sales.
Oracle Sales Cloud features a wealth of business intelligence (BI) analytics and reports that help sales personnel continuously monitor and interpret their sales pipeline, team performance, forecasts, activities, customers, and more. User can find the analytics and reports throughout the applications. In addition, they can schedule reports and create briefing books with report data. On the go, Oracle Mobilytics provides quick access to reports on the Apple iPad, and integration with Oracle Sales Cloud Mobile gives personnel analytics and reports on mobile devices and tablets.
Access to Analytics Areas
In Sales Cloud, analytics are provided in various areas, including:Infolets pages available from the springboard
Sales dashboard
Business intelligence (BI)Hope this helps.
-
shariq
MemberSeptember 15, 2018 at 10:20 am in reply to: Can we hide particular portion of Visualpage on click of button using render and reRender?Hi,
Yes you can for more understanding –
This could be as simple as setting a boolean property in your controller from the action method that the button invokes. That would allow you to conditionally render the second page block.
If you are looking to just change that part of the page, you’ll need to rerender an outer container, as you can’t rerender something that wasn’t there in the first place.
Hope this helps.
-
shariq
MemberSeptember 15, 2018 at 10:19 am in reply to: Can we hide particular portion of Visualpage on click of button using render and reRender?Hi,
Yes you can for more understanding -
This could be as simple as setting a boolean property in your controller from the action method that the button invokes. That would allow you to conditionally render the second page block.
If you are looking to just change that part of the page, you'll need to rerender an outer container, as you can't rerender something that wasn't there in the first place.
Hope this helps.
-
shariq
MemberSeptember 15, 2018 at 10:16 am in reply to: How many blocks we can create for join reports?Hi,
You can only have 5 in total, to add more -
A joined report can contain data from multiple standard or custom report types. You can add report types to a joined report if they have relationships with the same object or objects. For example, if you have a joined report that contains the Opportunities report type, you can add the Cases report type as well because both have a relationship with the Accounts object.
A joined report consists of up to five report blocks, which you add to the report to create multiple views of your data. For each block, you can add regular and summary fields, create standard and cross-block custom summary formulas, apply filters, and sort columns. You apply groupings across all blocks in the report, and can add up to three groupings to the blocks, the same as for the summary format. You can also add a chart to a joined report.
Each joined report has a principal report type. By default, the principal type is the first one added to the report, and is identified in the Fields pane with a small dot beside its name. For example, if you create the joined report by selecting the Opportunities report type, and then add the Cases type, the Opportunities type is the principal report type.
The principal report type controls how common fields are named. Some common fields have different names or appear in different sections in different report types. In those fields, click to see the name of the field in other report types.
When a joined report contains multiple report types, some fields are identified as common fields. A field is a common field if it’s shared by all report types or if all report types share a lookup relationship to the field. These fields appear in the Common Fields area in the Fields pane, and can be used to group report blocks
Hope this helps.
-
shariq
MemberSeptember 15, 2018 at 2:12 am in reply to: How can I use Ischanged() in lookup field in Salesforce?Hi,
Just try this -
IsChanged(yourLookup__c)
It will give true if your lookup is changed to different value.
Hope this helps.
-
shariq
MemberSeptember 15, 2018 at 2:10 am in reply to: What is a capability of cross-object formulas fields?Hi,
I think you need this -
A. Formula fields can reference fields from master-detail or lookup parent relationships.
B. Formula fields can expose data the user does not have access to in a record.
C. Formula fields can be used in three roll-up summaries per object.
D. Formula fields can reference fields in a collect of records from a child relationship.
E. Formula fields can reference fields from objects that are up to 10 relationships away.Hope this helps.
-
shariq
MemberSeptember 15, 2018 at 2:08 am in reply to: Is it at all possible to pass a parameter through a URL to an input field on a Visualforce page?Hi,
Just take out the value from URL and assign it to getter setter variable and use it on your visualforce page like -
String getterSetterVar {get;set;}
getterSetterVar = ApexPages.CurrentPage().getparameters().get('URLParameter');
Hope it helps.
-
shariq
MemberSeptember 15, 2018 at 2:05 am in reply to: What is the difference between WhoId and WhatId on Task?Hi,
To make it more simple to understand -
WhatID - Refers to object.
Example: Account Id, Opportunity Id.
WhoId - Refers to people.
Example: Lead Id, Contact Id.
-
Hi,
Set<Id> idSet - your Id set
Serialize this set - this will convert this set into json string.
Now just deserialize it into Set<String >class, deserialize method convert the json string into set<String>which is assigned to set of string variable which done below -
Set<String> stringSet= (Set<String>)JSON.deserialize(JSON.serialize(idSet ), Set<String>.class);
Hope this helps.
-
shariq
MemberSeptember 15, 2018 at 1:45 am in reply to: Is it possible to restrict permission for users using permission set?Hi,
You can restrict fields, objects etc using permission set, Could you please tell me your requirement so that I can help.
Thanks.
-
shariq
MemberSeptember 15, 2018 at 1:40 am in reply to: How to access cross object fields in lightning:datatable?Hi,
I am sharing you the code for data table, it may give you a little help -
Component -
<aura:component>
<!-- Imports -->
<aura:import library="lightningcomponentdemo:mockdataFaker" property="mockdataLibrary"/><!-- attributes -->
<aura:attribute name="data" type="Object"/>
<aura:attribute name="columns" type="List"/><!-- handlers-->
<aura:handler name="init" value="{! this }" action="{! c.init }"/><!-- the container element determine the height of the datatable -->
<div style="height: 300px">
<lightning:datatable
keyField="id"
data="{! v.data }"
columns="{! v.columns }"
hideCheckboxColumn="true"/>
</div>
</aura:component>Controller -
({
init: function (cmp, event, helper) {
cmp.set('v.columns', [
{label: 'Opportunity name', fieldName: 'opportunityName', type: 'text'},
{label: 'Account name', fieldName: 'accountName', type: 'text'},
{label: 'Close date', fieldName: 'closeDate', type: 'date'},
{label: 'Confidence', fieldName: 'confidence', type: 'percentage'},
{label: 'Amount', fieldName: 'amount', type: 'currency', typeAttributes: { currencyCode: 'EUR', maximumSignificantDigits: 5}},
{label: 'Contact Email', fieldName: 'contact', type: 'email'},
{label: 'Contact Phone', fieldName: 'phone', type: 'phone'},
{label: 'Website', fieldName: 'website', type: 'url', typeAttributes: { target: '_self'}},
{label: 'Address', fieldName: 'address', type: 'location'}
]);var fetchData = {
opportunityName: "company.companyName",
accountName : "name.findName",
closeDate : "date.future",
amount : "finance.amount",
contact: "internet.email",
phone : "phone.phoneNumber",
website : "internet.url",
status : {type : "helpers.randomize", values : [ 'Pending', 'Approved', 'Complete', 'Closed' ] },
actionLabel : {type : "helpers.randomize", values : [ 'Approve', 'Complete', 'Close', 'Closed' ]},
confidenceDeltaIcon : {type : "helpers.randomize", values : [ 'utility:up', 'utility:down' ]}
};helper.fetchData(cmp,fetchData, 10);
}
})Helper -
({
fetchData: function (cmp, fetchData, numberOfRecords) {
var dataPromise,
latitude,
longitude,
fakerLib = this.mockdataLibrary.getFakerLib();fetchData.address = {type : function () {
return {
latitude : fakerLib.address.latitude(),
longitude : fakerLib.address.longitude()
}
}};fetchData.confidence = { type : function () {
return fakerLib.random.number(100) + "%"
}};dataPromise = this.mockdataLibrary.lightningMockDataFaker(fetchData,numberOfRecords);
dataPromise.then(function(results) {
cmp.set('v.data', results);
});
}
})Hope this helps.
-
Hi,
For more clarity -
An approval action occurs when all required approvers approved a step. Approval Process. An approval process automates how records are approved in Salesforce. An approval process specifies each step of approval, including from whom to request approval and what to do at each point of the process.
Hope it helps.