Saddam Hussain
IndividualForum Replies Created
-
Saddam
MemberSeptember 19, 2019 at 6:50 am in reply to: When do we prefer future class rather than batch class in salesforce?Hi,
Future Annotation: Future Annotation is used to separate methods that are to be executed asynchronously.
If Future Annotation is not used in a web service callout, the thread will wait until the response comes and other processes will not be executed.Batch Apex: Batch Apex is used to separate tasks that are going to handle more records(complex long running jobs) in background process. Batch Apex also runs asynchronously.
If Batch Apex is not used for handling bulk records, we will hit governor limits set by Salesforce.com. -
Saddam
MemberSeptember 18, 2019 at 11:18 am in reply to: How to get access token of an org in salesforce?Hi,
To get the security token for your Salesforce account
In the mailbox for the email address associated with the Salesforce account to be used by the Coveo connector, look for the latest email message received from [email protected] with subject: salesforce.com security token confirmation.
If you cannot find the latest email with security token, reset the security token:Log in to Salesforce using the Salesforce account to be used by the Coveo connector.
In the User Menu, select Setup.
In the menu on the left, under Personal Setup, expand My Personal Information, and then click Reset My Security Token.
Follow onscreen instructions.
A new email message will be sent.
Open the message, and then copy the Security Token value.Note: If your org is whitelisted then you can't find Security Token
-
Saddam
MemberSeptember 18, 2019 at 11:14 am in reply to: Explain some of Configuring javascript remoting requests in salesforce?Hi,
Configure a remoting request by providing an object with configuration settings when you declare the remoting request.
For example, the default configuration parameters look like this:{ buffer: true, escape: true, timeout: 30000 }
These configuration parameters aren’t ordered, and you can omit parameters you don’t want to change from the default.
JavaScript remoting supports the following configuration parameters:Name
Data Type
Description
buffer
Boolean
Whether to group requests executed close to each other in time into a single request. The default is true.JavaScript remoting optimizes requests that are executed close to each other in time and groups the calls into a single request. This buffering improve the efficiency of the overall request-and-response cycle, but sometimes it’s useful to ensure all requests execute independently.
escape
Boolean
Whether to escape the Apex method’s response. The default is true.
timeout
Integer
The timeout for the request, in milliseconds. The default is 30,000 (30 seconds). The maximum is 120,000 (120 seconds, or 2 minutes). -
Saddam
MemberSeptember 18, 2019 at 11:13 am in reply to: What is AppExchange directory in salesforce?Hi,
Salesforce AppExchange is Salesforce.com’s cloud computing marketplace through which end users can access, download and install software apps. … Launched by Salesforce.com in 2005, the AppExchange website became the first publicdirectory of its kind.
-
Hi,
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
SaaS applications use a simple internet interface that makes easier for customer to use.
SaaS always provide a latest platform to the customer with innovation. -
Saddam
MemberSeptember 17, 2019 at 7:59 am in reply to: What is the difference between Force.com and Salesforce.comHi,
Salesforce.com is the actual CRM Software on Cloud with all standard applications for organizations and end users.
Force.com is same as Setup page for Admins and developers, which allows you to customize the salesforce.com applications, administer your salesforce.com, build new applications using number of tools (create/manage users, create/manage obj, fields, processes, rules, apps...) -
Saddam
MemberSeptember 17, 2019 at 7:06 am in reply to: How can i create Master Detail Relationship(MDR) in salesforce?Hi,
Create one object (called junction object) and established master-detail Relationship between them
-
Saddam
MemberSeptember 16, 2019 at 6:00 am in reply to: Explain the use of an Outbound Message in Salesforce?Hi,
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. Workflow rules watch for specific kinds of field changes and trigger automatic Salesforce actions, such as sending email alerts, creating task records, or sending an outbound message.
-
Saddam
MemberSeptember 16, 2019 at 5:57 am in reply to: In Salesforce Is it possible to schedule a dynamic dashboard ?Hi,
no we cannot schedule a dynamic dashboard. That is because whenever we open the dashboard, it will show the data generated in real-time.
-
Hi,
Static resources allow you to upload content that you can reference in a Visualforce page, including archives (such as .zip and .jar files), images, style sheets, JavaScript, and other files.
-
Hi,
A blob is data type which collection of binary data, now if i will you I world definitely want to know what is binary data, so you may aware that information in computer is stored in the form of 0 or 1, so to construct a message in particular format whether it’s image or PDF file, it will be store in the form of series of binary data and that form or collection is known as blob.
Blob is part of System namespace which provide methods and classes for apex core functionality, so we have separate blob class, which include some functions that help us to deal with multimedia in salesforce, i.e PDF . Let see all the methods that blob class provide us,
valueOf(stringToBlob)
Blob is mainly use in apex to deal with creating PDF files or strings, it doesn’t used to deal with other multimedia objects like images and music, we have a function which valueOf which convert the convert/cast the string into blob object, as we are casting the string into blob the return type of it will be of blob type, see example below.String testString='test string';
Blob myBlob=blob.valueOf(testString); -
Saddam
MemberSeptember 13, 2019 at 10:22 am in reply to: What is the use of Support Process in Salesforce?A support process is the case status values assigned to a case record type. (chosen from the case status field values)
A Business process is the stage values assigned to an opportunity record type. (chosen from the opportunity stage field values)
-
Saddam
MemberSeptember 13, 2019 at 10:21 am in reply to: What is the use of Escalation Rules in Salesforce?Hi,
Escalation rules are used to escalate cases automatically when they meet the criteria which are defined in rule entry. We create rule entries where criteria is defined to escalate a case.
Whenever an escalation rule is applied for a case, it checks whether the criteria met with the rule entry. If the case matches with the criteria in the rule entry, then the further escalation action is carried out.
Escalation action defines what should be done when a case matches with the rule entry. We can add up to five actions for each rule entry to escalate the case over time.
-
Saddam
MemberSeptember 12, 2019 at 6:36 am in reply to: How to look at the user license information in Salesforce Org?Hi
From Setup, enter Company Information in the Quick Find box, then select Company Information.
See the User Licenses related list. -
Saddam
MemberSeptember 12, 2019 at 6:31 am in reply to: How many ways we can share a record in Salesforce? -
Hi
A map is a search table that you build from scratch. You choose all the possible search terms, and for each one you add a search result. It’s like building your very own Google search!
Building and using map goes like this:
Choose a data type for the search terms and another for the search results of your map.
– Search terms are usually Strings or IDs.
– Search results are usually sObjects (like an Account, Opportunity, or Contact).
Add each search term and search result to your map as a pair.
“Search” your map with any search term and the search result is returned to you!// Step 1: The search term (email) data type will be a string
// The search result (name) data type will also be a string
Map<String, String> friendMap = new Map<String, String>();
// Step 2: Add our friends as a search term/result pair
friendMap.put('[email protected]', 'David Liu');
friendMap.put('[email protected]', 'Taylor Swift');
friendMap.put('[email protected]', 'Shakira');
friendMap.put('[email protected]', 'Marissa Mayer');
// Step 3: Search our map using the get() function
String biggestFan = friendMap.get('[email protected]');
System.assertEquals('Taylor Swift', biggestFan); // TRUE- This reply was modified 5 years, 2 months ago by Saddam.
-
Saddam
MemberSeptember 11, 2019 at 2:50 pm in reply to: What is the difference between role and profile in salesforce?Profile:
A Profile is a collection of settings and permissions that controls the user what they have to do in the application and with access what they have.
A profile controls “Object permissions, Field permissions, User permissions, Tab settings, App settings, Apex class access, Visualforce page access, Page layouts, Record Types, Login hours & Login IP ranges.
Defining profile for a user is mandatory.Role:
A role controls the level of visibility that users have into your organization’s data. Mainly is going to provide the record level security.
Users at any given role level can view, edit, and report on all data owned by or shared with users below them in the hierarchy, unless your organization’s sharing model for an object specifies otherwise.
It is not mandatory that a user should have a role. -
Hi Piyush,
Utility classes are helper classes that consisits of reusable methods.
From triggers we can call methods in such public classes. This helps to reduce code with in trigger and make it more structured.
If we have a trigger on oppotunity which does date format and assign it to a field value, it can be written as follows with the help of utilty classtrigger updateOpp on Opportunity (before insert){
for(Opportunity opp : Trigger.new){
opp.formattedDate__c = TriggerHelper.formatDate(opp.someDate__c);
}
}//Utility Class
Public Class TriggerHelper{
Public Static string formatDate(Date inputDate){
return inputDate.format();
}
} -
Saddam
MemberSeptember 11, 2019 at 2:45 pm in reply to: What is the use of output field in lightning component ?Hi Hariom,
A lightning:outputField component displays the field value in the correct format based on the field type. You must provide the record ID in the wrapper lightning:recordViewForm component, and specify the field name on lightning:outputField.
-
Hi Deepak,
Generally, all Apex code runs in system mode, and the permissions and record sharing of the current user are not taken into account. The system method, System.runAs(), lets you write test methods that change user contexts to either an existing user or a new user. All of that user’s record sharing is then enforced. You can only use runAs in a test method. The original system context is started again after all runAs() test methods complete.
-
Saddam
MemberSeptember 10, 2019 at 9:33 am in reply to: What happens to the Detail record when a Master record is deleted in salesforce?Hi Piyush,
I master Detail Relationship, once u delete parent record all associate child record will be deleted.
-
Saddam
MemberSeptember 10, 2019 at 9:30 am in reply to: What are the types of apps we can create in Salesforce Mobile?Hi Laveena,
App that can be Built using Salesforce
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.
-
Saddam
MemberSeptember 5, 2019 at 5:31 am in reply to: Can we use all report types as data source on dashboard in Salesforce?Hi Piyush,
DashBoard support Summary and Matrix report type and dash board support tabular also but tabular report if rows are limited (maximum 10).
- This reply was modified 5 years, 2 months ago by Saddam.
-
Saddam
MemberSeptember 5, 2019 at 5:28 am in reply to: How to create many to many relationships between object in SCualesforce?Hi Prachi,
create Many-to-Many Relationship between Invoice object and Pharma Product object. As already we have create junction object Pharma Product Invoice so establish Many-to-Many relationship between Pharma Product(parent Object) and Junction Object(Child Object), Invoice Object(parent Object) and Junction Object(Child Object).
-
Saddam
MemberSeptember 4, 2019 at 6:41 am in reply to: How to validate fields in lightning component in Salesforce?Hi Nikita,
Here is the example
<aura:component >
<center>
<br/>
<h5> <b> Age Validator </b> </h5> <br/>
Enter your age: <ui:inputNumber aura:id="inputCmp"/> <br/>
<ui:button label="Submit" press="{!c.validateAge}"/>
</center>
</aura:component>{
validateAge : function(component) {
var ageField = component.find("inputCmp");
var ageValue = ageField.get("v.value");if(isNaN(ageValue) || ageValue == '')
{
ageField.set("v.errors", [{message:"Enter a valid age."}]);
}
else if(parseInt(ageValue) > 150)
{
ageField.set("v.errors", [{message:"This is not a valid age."}]);
}
else if(parseInt(ageValue) < 18)
{
ageField.set("v.errors", [{message:"Minimum age to submit this form should be greater or equal 18"}]);
}
else
{
ageField.set("v.errors", null);
}
}
}