shariq
IndividualForum Replies Created
-
shariq
MemberSeptember 23, 2018 at 6:44 AM in reply to: What are the different types of reports available in SalesforceThe different types of reports in Salesforce are:
Tabular report that displays the grand total in table form.
Matrix report where grouping is based upon both rows and columns.
Summary reports that are detailed reports in which the grouping is based on columns.
Joined report which allows two or more reports to be joined in a single report -
It is exact replica of the production
Copy both configuration and entire real time data from the production
Refresh time interval 29 days Salesforce Online Training -
shariq
MemberSeptember 23, 2018 at 6:43 AM in reply to: What is partial data sandbox in Salesforce?Copy configuration changes
Copy certain amount of real time data
Real time data limit is 5GB
For each table it can copy maximum of 10k records
Refresh interval 5 days -
shariq
MemberSeptember 23, 2018 at 6:42 AM in reply to: What is the junction object and what purpose does it serve in Salesforce?Junction objects are used to build many-to-many relationships between objects. For example, the user can take a recruiting application where a position for a job can be linked to many candidates or can take a candidate and link the candidate to many other jobs. In order to connect the data model, a third party object is referred to as junction object. In the given example, the junction object is “job application.”
-
shariq
MemberSeptember 23, 2018 at 6:42 AM in reply to: What is developer pro sandbox in Salesforce?Copy configuration changes
No real-time data
Sample data limit is 1GB
Refresh time interval one day -
The Audit Trail function in Salesforce is useful for gaining information or for tracking all the recent setup changes that the administration has done in the organization. The audit trail can preserve data for up to six months.
-
It copies only configuration changes from the production.
It won’t copy real-time data.
We can test the configuration changes with sample data
Refresh time interval is one day.
If we refresh all the sandbox contents will be replaced with production Contents. -
In Salesforce, the dashboard is a pictorial representation of the report. 20 reports can be added to a single dashboard.
-
The sharing rules are applied when a user wishes to allow access to other users.
-
To make any changes for the exiting application we should copy all contents of the production into sandbox and make all changes after that test thoroughly and move those changes into production.
To create the sandbox, in production we can find one link called sandboxes. By clicking on that link we can create the sandbox by choosing type of the sandbox.
-
We should not make coding changes in production since end-users are using the application from production environment.
-
A Wrapper Class is a class whose instances are a collection of other objects and is used to display different objects on a Visual force page in the same table.
-
Visualforce is the new markup language from salesforce, by using which, We can render the standard styles of salesforce. We can still use HTML here in Visualforce. Each visualforce tag always begins with “apex” namespace. All the design part can be acomplished by using Visualforce Markup Language and the business logic can be written in custom controllers associated with the Page.
-
shariq
MemberSeptember 23, 2018 at 6:36 AM in reply to: What does it indicate if an error state this “list has no rows for assignment” in Salesforce?The error that tells “list has no rows for assignment” indicates that the list you are trying to access has no values in it.
-
shariq
MemberSeptember 23, 2018 at 6:35 AM in reply to: What is the Object Relationship Overview in Salesforce?In Salesforce, the object relationship overview links custom object records to standard object records in a related list. This is helpful to track product defects in related customer cases. Salesforce allows users to define different types of relationships by creating custom relationship fields on an object.
-
shariq
MemberSeptember 23, 2018 at 6:34 AM in reply to: Explain the various Standard Profiles in Salesforce?System Administrator – Customization and administration of the application.
Standard User – Can edit, view, update or delete one’s own record.
Read Only – Able to just view the records.
Solution Manager – Comes with standard user permission but also can manage categories and published solutions.
Marketing User – Is able to import leads into the organization along with standard user permissions. -
shariq
MemberSeptember 23, 2018 at 6:34 AM in reply to: What does a custom object permit the user to do in Salesforce?Once the custom object is defined, the subscriber can perform the following tasks: Create custom fields, relate the custom object to other records, track events and tasks, build page layouts, create a custom tab for the custom object, analyze custom object data and create dashboards and reports, share custom tabs, custom apps, custom objects, and various other related components. None of these tasks can be accomplished until the custom object has definition
-
A record is analogous to a row in a database table. Objects already created for you by Salesforce are called standard objects. Objects you create in your organization are called custom objects. Objects you create that map to data stored outside your organization are called external objects
-
shariq
MemberSeptember 23, 2018 at 6:32 AM in reply to: Explain the advantages of Salesforce SaaS functionality?Some of the main benefits of Salesforce SaaS are:
A pay-as-you-go model perfectly suited for all customers.
No hassle of infrastructure management.
All applications are accessed via internet.
Easy integration between various applications.
Latest features are provided without any delay.
Guaranteed uptime and security.
Scalable performance for various operations.
Ability to access via mobile devices from anywhere. -
shariq
MemberSeptember 22, 2018 at 10:54 PM in reply to: How to create and host S Control in Salesforce?Click on “Setup” which is located on the top right corner of the force.com page.
Expand “Develop” item and click on “S-Controls”
Hit “New Custom S-Control”
Provide a Label “Google Map” and a description is you wished to
The Type should be HTML since we want to create a HTML, Google API mash up<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Google Maps JavaScript API Example: Advanced Directions</title>
<link href="/dCSS/Theme2/default/common.css" type="text/css" media="handheld,print,projection,screen,tty,tv"
rel="stylesheet">
<link href="/dCSS/Theme2/default/custom.css" type="text/css" media="handheld,print,projection,screen,tty,tv"
rel="stylesheet"><script src=" http://maps.google.com/?file=api&v=2.x&key={YOUR KEY}"
type="text/javascript"></script><script src="/js/functions.js" type="text/javascript"></script>
<script type="text/javascript" src="/soap/ajax/13.0/connection.js"></script>
<style type="text/css">
body {
font-family: Verdana, Arial, sans serif;
font-size: 11px;
margin: 2px;
}
table.directions th {
background-color:#EEEEEE;
}img {
color: #000000;
}
</style><script type="text/javascript">
var map;
var gdir;
var geocoder = null;
var addressMarker;
var dirFrom = '{!$Request.from}';
var dirTo = '{!$Request.to}';
var mapLocale = ""
var SControlID = '{!$Request.lid}';
var SFrameIC = '{!$Request.ic}';function initValues()
{
mapLocale = "en_US";setInputFields(dirFrom,dirTo);
}function setInputFields(from, to)
{
window.document.getElementById("fromAddress").value = from;
window.document.getElementById("toAddress").value = to;
}function initialize()
{
initValues();if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map_canvas"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
gdir = new GDirections(map, document.getElementById("directions"));
GEvent.addListener(gdir, "load", onGDirectionsLoad);
GEvent.addListener(gdir, "error", handleErrors);setDirections(dirFrom, dirTo, mapLocale);
}
}function setDirections(fromAddress, toAddress, locale) {
if ((fromAddress) && (toAddress))
gdir.load("from: " + fromAddress + " to: " + toAddress,
{ "locale": locale });
}function handleErrors()
{
if (gdir.getStatus().code == G_GEO_UNKNOWN_ADDRESS)
alert("No corresponding geographic location could be found for one of the specified addresses. This may be due to the fact that the address is relatively new, or it may be incorrect.nError code: " + gdir.getStatus().code);
else if (gdir.getStatus().code == G_GEO_SERVER_ERROR)
alert("A geocoding or directions request could not be successfully processed, yet the exact reason for the failure is not known.n Error code: " + gdir.getStatus().code);else if (gdir.getStatus().code == G_GEO_MISSING_QUERY)
alert("The HTTP q parameter was either missing or had no value. For geocoder requests, this means that an empty address was specified as input. For directions requests, this means that no query was specified in the input.n Error code: " + gdir.getStatus().code);// else if (gdir.getStatus().code == G_UNAVAILABLE_ADDRESS) <--- Doc bug... this is either not defined, or Doc is wrong
// alert("The geocode for the given address or the route for the given directions query cannot be returned due to legal or contractual reasons.n Error code: " + gdir.getStatus().code);else if (gdir.getStatus().code == G_GEO_BAD_KEY)
alert("The given key is either invalid or does not match the domain for which it was given. n Error code: " + gdir.getStatus().code);else if (gdir.getStatus().code == G_GEO_BAD_REQUEST)
alert("A directions request could not be successfully parsed.n Error code: " + gdir.getStatus().code);else alert("An unknown error occurred.");
}
function onGDirectionsLoad(){
// Use this function to access information about the latest load()
// results.// e.g.
// document.getElementById("getStatus").innerHTML = gdir.getStatus().code;
// and yada yada yada...
}
</script></head>
<body onload="initialize()" onunload="GUnload()">
<div style="background-color: #CCCCCC">
<form action="#" onsubmit="setDirections(this.from.value, this.to.value, this.locale.value); return false">
<table>
<tr>
<th align="right">
From: </th>
<td>
<input type="text" size="25" id="fromAddress" name="from" value="" /></td>
<th align="right">
To: </th>
<td align="right">
<input type="text" size="25" id="toAddress" name="to" value="" /></td>
<th align="right">
Language: </th>
<th align="right">
<select id="locale" name="locale">
<option value="en" selected="selected">English</option>
<option value="fr">French</option>
<option value="de">German</option>
<option value="ja">Japanese</option>
<option value="es">Spanish</option>
</select>
</th>
<td>
<input name="submit" type="submit" value="Get Directions!" /></td>
</tr>
</table>
</form>
</div>
<div style="border-width: 1px; border-color: #000000; border-style: solid;">
<div style="overflow: auto; width: 99.5%; height: 380px">
<table class="directions" style="width: 100%; height: 100%">
<tr>
<td valign="top" style="width: 275px;">
<div id="directions" style="width: 275px; background-color: #ffffff;">
</div>
</td>
<td valign="top">
<div id="map_canvas" style="width: 100%; height: 375px; background-color: #ffffff;">
</div>
</td>
</tr>
</table>
</div>
</div>
</body>
</html>In order to host your s-control in your Visual Force Pages you need to the the following steps:
Create a new VF page or go to your existing VF page editor
Pick your S-Control API name and have it ready.
Within the Page block or where you find suitable add an apex:scontrol tab as follows:<apex:scontrol controlName="Google_Map" width="-100"height="415"> </apex:scontrol>
-
shariq
MemberSeptember 22, 2018 at 10:48 PM in reply to: How you can provide the User Login (Authentication) in Public sites created by Salesforce?We can provide the authentication on public sites using “Customer Portal”.
-
shariq
MemberSeptember 22, 2018 at 10:48 PM in reply to: Where is the option of the report for the “Custom Object with related object” in Salesforce?If the parent object is the standard object provided by the salesforce like “Account”, “Contact” then the report will be in there section with related custom object.
If both objects are the custom then the report will be in “Other Reports” Sections.Following are the conditions to get the report of related objects:
On both the objects, Reports option must be enable.
Both object must be related either using Lookup or Master Detail type of field. -
shariq
MemberSeptember 22, 2018 at 10:47 PM in reply to: How to restrict any Trigger to fire only once OR how we can avoid repeated or multiple execution of Trigger in Salesforce?Triggers can fire twice, once before workflows and once after workflows -
“The before and after triggers fire one more time only if something needs to be updated. If the fields have already been set to a value, the triggers are not fired again.”
Workaround:
Add a static boolean variable to a class, and check its value within the affected triggers.
view source
print?
public class HelperClass {
public static boolean firstRun = true;
}
trigger affectedTrigger on Account (before delete, after delete, after undelete) {
if(Trigger.isBefore){
if(Trigger.isDelete){
if(HelperClass.firstRun){
Trigger.old[0].addError('Before Account Delete Error');
HelperClass.firstRun=false;
}
}
}
} -
shariq
MemberSeptember 22, 2018 at 10:45 PM in reply to: What is the difference between trigger.new and trigger.old in Salesforce Apex?Trigger.new:
Returns a list of the new versions of the sObject records.
Note that this sObject list is only available in insert and update triggers, and the records can only be modified in before triggers.
Trigger.old:
Returns a list of the old versions of the sObject records.
Note that this sObject list is only available in update and delete triggers
-
shariq
MemberSeptember 22, 2018 at 10:44 PM in reply to: How to restrict the user to see any record, lets say opportunity in Salesforce?set up opportunity sharing to be private. If both users are admins or have view all records on opportunity, then that overrides private sharing.