Parul
IndividualForum Replies Created
-
Parul
MemberSeptember 18, 2018 at 7:06 pm in reply to: What is the difference between Auto Response Rule and Workflow Email Alert in Salesforce?Hi
Auto-response rules and workflow email alerts provide similar functionality. When an email is sent via an auto response rules, using “Send an Email” button on Emails related list or using “Send Email” button on case feed, the emails are stored in the EmailMessages object against the particular Case record. This makes it easier for the support agent/user to see the past email communications and provide better support.Hence you can track email . In addition, this related list also tracks the replies sent by the customer. But emails sent via WF email alert are not stored in the EmailMessages object and hence couldn’t be tracked in the Email related list.
Thanks
-
Parul
MemberSeptember 18, 2018 at 7:03 pm in reply to: How to connect my org to Salesforce marketing cloud?You can use Connect the cloud to refer the code.
Thanks
-
Parul
MemberSeptember 18, 2018 at 7:02 pm in reply to: Is there any development environment in Salesforce Marketing Cloud ?No there is only separate BUs that you can create which provides segregation of data.
Thanks
-
Parul
MemberSeptember 18, 2018 at 6:58 pm in reply to: Why we cannot perform DML operation on SET type collection variable in Salesforce?Yes, we cannot perform DML operation on collection variables. But for DML operation you need to add all Data in set and then go for DML.
Thanks
-
Parul
MemberSeptember 18, 2018 at 6:40 pm in reply to: What is the basic difference between Standard, Custom and Extension Controllers in Salesforce?Hi
A custom controller is an Apex class that implements all of the logic for a page without leveraging a standard controller. Use custom controllers when you want your Visualforce page to run entirely in system mode, which does not enforce the permissions and field-level security of the current user.
A controller extension is an Apex class that extends the functionality of a standard or custom controller. Use controller extensions when: You want to leverage the built-in functionality of a standard controller but override one or more actions, such as edit, view, save, or delete.
You want to add new actions.
You want to build a Visualforce page that respects user permissions. Although a controller extension class executes in system mode, if a controller extension extends a standard controller, the logic from the standard controller does not execute in system mode. Instead, it executes in user mode, in which permissions, field-level security, and sharing rules of the current user apply.If you want your page to have the standard behaviors that are provided by Salesforce than you will be using Standard Controllers. Salesforce Provided standard controllers for most of the standard and custom objects.
Thanks
-
Parul
MemberSeptember 18, 2018 at 6:35 pm in reply to: What is the difference between SOSL queries and SOQL queries in Salesforce?Hi
SOQL:
1) SOQL (Salesforce Object Query Language ) retrieves the records from the database by using “SELECT” keyword.
2) By Using SOQL we can know in Which objects or fields the data resides.
3) We can retrieve data from single object or from multiple objects that are related to each other.
4) We can Query on only one table.SOSL:
1) SOSL(Salesforce Object Search Language) retrieves the records from the database by using the “FIND” keyword.
2) By using SOSL, we don’t know in which object or field the data resides.
3) We can retrieve multiple objects and field values efficiently when the objects may or may not be related to each other.
4) We can query on multiple tables.Thanks
-
Parul
MemberSeptember 18, 2018 at 6:34 pm in reply to: What is the use of Custom Label in Salesforce?Hi.
Custom labels are custom text values that can be accessed from Apex classes or Visualforce pages. The values can be translated into any language Salesforce supports. Custom labels enable developers to create multilingual applications by automatically presenting information (for example, help text or error messages) in a user’s native language.
You can create up to 5,000 custom labels for your organization, and they can be up to 1,000 characters in length.To access custom labels, Go To Setup — Create — Custom Labels. Click on New Custom Labels.Enter value for name, value and description. We can use custom label name to access custom label value in apex code using System.Label.labelName.
Thanks
-
Parul
MemberSeptember 18, 2018 at 6:32 pm in reply to: What is meant by Outbound messages and how is it different from generating email ?Hi
Outbound messages are used to data communication from Salesforce to other external systems. We can configure outbound messages and in endpoint Url section we need to give "URL to call the webservice of the another system", outbound message is configured as action of the workflows.
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. You have a requirement where you need to send some automated notification to that external service from Salesforce environment, in such scenario you will be using Outbound messages.
Thanks
-
Parul
MemberSeptember 18, 2018 at 6:27 pm in reply to: What is the difference between Custom Setting and Custom Object in Salesforce?Custom settings are similar to custom objects and enable application developers to create custom sets of data, as well as create and associate custom data for an organization, profile, or specific user. You can use custom settings to store a variety of information that can be accessed easily by other Salesforce tools.
Use and example of Custom Settings
Hard-coding and good code are a match made in hell. RecordTypeIds are most vulnerable to this abuse, and we’re are all familiar with the frustration of finding that code that worked in environment A, suddenly stops working when it is promoted to say test. Why? Because possibly RecordTypeIds are different across the two environments.Why hard-code when you can use Custom Setting.Custom Settings are a SOQL inexpensive way of storing your configurable parameters in the safe confines of the Salesforce database, with all the conveniences of a custom object – create / edit via point and click – standard salesforce.
Custom Object: Custom objects are custom database tables that allow you to store information unique to your organization.In the API, the names of custom objects include a suffix of two underscores followed by a lowercase “c” . For example, a custom object labeled “Issue” in the Salesforce user interface is Issue__c in that organization’s WSDL.
Thanks
-
Parul
MemberSeptember 18, 2018 at 6:20 pm in reply to: How to set expire a link after one time click in SalesforceHi
In your html:
<a href="#" id="myButton" title="">Click Me!</a>
In your js:(function(){
var click_counter = 0;
$('#myButton').on('click', function(event){
event.preventDefault();
var el = jQuery(this);
click_counter += 1;
if (!el.hasClass('inactive')){
// should be activated
alert('You have clicked the link ' + click_counter + ' once , And this will be disabled');
};
if (click_counter >= 1){
// deactivate
el.addClass('inactive');
};
});
})();
And to indicate your button has been clicked , add this class to your CSSa.inactive {
color: gray;
text-decoration: line-through;
}Hope this helps!
Thanks
-
Parul
MemberSeptember 18, 2018 at 6:15 pm in reply to: What is metadata - driven development model ?Hi
The metadata-driven development model eliminates the need for code, making development of rich applications a snap. The development is done using button clicks and without code, which allows developer to spend more time focusing on feature requirement and less time worrying about code.
The Force.com platform uses a metadata-driven development model to help app developers become more productive in putting together apps. It means that the basic functionality of an app—that is, the tabs, forms, and links—are defined as metadata in a database rather than being hard-coded in a programming language. When a user accesses an app through the Force.complatform, it renders the app’s metadata into the interface the user experiences.
Hope this will help you.
thanks
-
Bucket field in Salesforce Reports is an incredible powerful functionality used to quickly categorize values for a field in a report without the need to have a custom formula field at the object level. When you create a bucket field in Salesforce, you define multiple categories into groups depending on the record values, this bucket field will not affect other Salesforce reports. Bucket fields in Salesforce are available in Tabular reports, Summary Reports and Matrix reports. Joined Reports does not support Bucket fields.
Thanks
-
Parul
MemberSeptember 18, 2018 at 6:09 pm in reply to: How to use remote site settings in salesforceSalesforce allows you to access external website resources from a Salesforce application for your organization. You can access these external websites through Visualforce pages, Apex Callout, and via XmlHttpRequest calls. To avoid accessing malicious websites from Salesforce.com, the website first needs to be registered with remote site settings. Once the site is registered, it can be used within Salesforce.com.
To register a new site, follow these steps:
Navigate to Setup | Administer | Security Controls | Remote Site Settings.
Click on the Remote Site Edit button to add a new site.Thanks
-
Hi
Apex managed sharing allows developers to programmatically share custom objects. When you use Apex managed sharing to share the custom object, only users with the “Modify All Data” permission can add or change the sharing on the custom object’s record, and the sharing access is maintained across record owner changes.
Apex Manager sharing can be enabled on the object that is having private and public read-only access.
Note:
1. Apex Managed Sharing can not be enabled on public read-write objects
2. Each custom object is having its own sharing table with __share name if the object sharing is private or public read-only
3. Apex sharing reasons and Apex managed sharing recalculation are only available for custom objects.
4. Objects on the detail side of a master-detail relationship do not have an associated sharing object. The detail record’s access is determined by the master’s sharing object and the relationship’s sharing settingThanks
-
Parul
MemberSeptember 18, 2018 at 6:01 pm in reply to: Differences between all of the messaging optionsHi
Add more point:
<apex:pageMessage>
This component is used to dispaly custom messages with severity error,warning etc. in the VF page.
<apex:page controller="MyRegisterCon2" sidebar="false" docType="HTML-5.0" >
<apex:form >
<apex:pageBlock >
<apex:pageblockSection columns="1" >
<apex:pageMessage summary="This is page message" severity="warning" strength="3" />
<apex:inputtext value="{!FirstName}" label="First Name" />
<apex:inputtext value="{!LastName}" label="Last Name" />
<apex:input value="{!Jdate}" label="DOB" type="date" id="dob" />
<apex:inputtext value="{!Phone}" label="Phone" id="phone" />
</apex:pageblockSection>
<apex:pageBlockButtons >
<apex:commandButton value="submit" action="{!save}" />
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form></apex:page><apex:pageMessages>
The above component provides the SF styling for the messages.
<apex:page controller="MyRegisterCon2" sidebar="false" docType="HTML-5.0" >
<apex:form >
<apex:pageBlock >
<apex:pageblockSection columns="1" >
<apex:pageMessages />
<apex:inputtext value="{!FirstName}" label="First Name" />
<apex:inputtext value="{!LastName}" label="Last Name" />
<apex:input value="{!Jdate}" label="DOB" type="date" id="dob" />
<apex:inputtext value="{!Phone}" label="Phone" id="phone" />
</apex:pageblockSection>
<apex:pageBlockButtons >
<apex:commandButton value="submit" action="{!save}" />
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form></apex:page><apex:messages>
Include above code in VF page it will display all the messages . If we observe styling was not applied to the messages.
<apex:page controller="MyRegisterCon2" sidebar="false" docType="HTML-5.0" >
<apex:form >
<apex:pageBlock >
<apex:pageblockSection columns="1" >
<apex:messages />
<apex:inputtext value="{!FirstName}" label="First Name" />
<apex:inputtext value="{!LastName}" label="Last Name" />
<apex:input value="{!Jdate}" label="DOB" type="date" id="dob" />
<apex:inputtext value="{!Phone}" label="Phone" id="phone" />
</apex:pageblockSection>
<apex:pageBlockButtons >
<apex:commandButton value="submit" action="{!save}" />
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form></apex:page><apex:message>:
This component is used to display warning or error message for a specific component.
Change visualforce to following code.
<apex:page controller="MyRegisterCon2" sidebar="false" docType="HTML-5.0" >
<apex:form >
<apex:pageBlock >
<apex:pageblockSection columns="1" >
<apex:message for="phone" />
<apex:inputtext value="{!FirstName}" label="First Name" />
<apex:inputtext value="{!LastName}" label="Last Name" />
<apex:input value="{!Jdate}" label="DOB" type="date" id="dob" />
<apex:inputtext value="{!Phone}" label="Phone" id="phone" /></apex:pageblockSection>
<apex:pageBlockButtons >
<apex:commandButton value="submit" action="{!save}" />
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form></apex:page>
Hope this will help you.
Thanks
-
Parul
MemberSeptember 18, 2018 at 1:49 pm in reply to: How to get the userId of currently logged user in salesforce?Hi Kapil,
There is different way to get the userId -:
In apex -: Use UserInfo.getUserId()
In VisualForcePage -: Use {!$User.Id}
Thanks
-
Parul
MemberSeptember 18, 2018 at 1:46 pm in reply to: How can we find the deleted records in After delete trigger in Salesforce?Hi Kapil,
To Query Record in "afterdelete" Trigger,We have to use Trigger.Old
i.e. List<SObject> listofsObject = Trigger.Old;
Thanks
-
Parul
MemberSeptember 18, 2018 at 1:44 pm in reply to: How to get all the field names of an object using SOQL?Hi Kapil,
Try the follwing code
Map <String, Schema.SObjectType> schemaMapofAllSobject = Schema.getGlobalDescribe();
Map <String, Schema.SObjectField> MapofdesiredObject = schemaMap.get('Contact').getDescribe().fields.getMap();
for(Schema.SObjectField sObjectfield : MapofdesiredObject.Values())
{
schema.describefieldresult dfield = sObjectfield.getDescribe();
system.debug(‘@@@API Name : ‘ + dfield.getname());
system.debug(‘####Label Name : ‘ + dfield.getLabel ());
}Note -: Here We use Contact as our sObject.
Thanks
-
Parul
MemberSeptember 18, 2018 at 1:41 pm in reply to: How to retrieve protected custom settings records via SOQL Query in Salesforce?Hi Kapil,
If Privacy for a custom setting is Protected and the custom setting is contained in a managed package, the subscribing organization cannot edit the values or access them using Apex.
Thanks
-
Parul
MemberSeptember 18, 2018 at 1:39 pm in reply to: How many custom tabs can be created in a salesforce dev org?Hi,
For developer edition you can create a maximum of 100 Tabs
Thanks
-
Parul
MemberSeptember 18, 2018 at 1:38 pm in reply to: What are the different elements of WSDL documents in Salesforce?There are different components of WSDL are:
Definition − It is the root element of all WSDL documents.
Data types − These are in the form of XML schemas.
Message − It is an abstract definition of the data, in the form of a message which can be either as a document or as arguments.
Operation − It is the abstract definition of the operation for a message.
Port type − It is set of operations mapped to one or more end-points, also defining the collection of operations for a binding.
Binding − It is the protocol and data formats for the operations that are defined for a particular port type.
Port − It is a combination of a binding and a network address. -
Parul
MemberSeptember 18, 2018 at 1:37 pm in reply to: How to create many to many relationships between two Salesforce Objects?Hi Kapil,
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. When modeling a many-to-many relationship, you use a junction object to connect the two objects you want to relate to each other.
Junction Object
A custom object with two master-detail relationships. Using a custom junction object, you can model a “many-to-many” relationship between two objects. 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.
Creating the many-to-many relationship consists of:1.Creating the junction object.
2.Creating the two master-detail relationships.
3.Customizing the related lists on the page layouts of the two master objects.
4.Customizing reports to maximize the effectiveness of the many-to-many relationship.Thanks
-
Parul
MemberSeptember 18, 2018 at 1:36 pm in reply to: How to add Javascript Remoting to a Visualforce Page in Salesforce?Hi
JavaScript code can be written in a Visualforce page and can be included in a Visualforce page by using a static resource within the script.
Example: Code snippet
<script type=”text/javascript”>
function getRemoteAccount() {
var accountName = document.getElementById(‘acctSearch’).value;
Visualforce.remoting.Manager.invokeAction(
‘{!$RemoteAction.MyController.getAccount}’,
accountName,
function(result, event){
if (event.status) {
// Code for callback handling
}
}, {escape: true}
);
}
</script>Controller:
@RemoteAction
global static String getItemId(String objectName) { … }Thanks
-
Parul
MemberSeptember 18, 2018 at 1:31 pm in reply to: How can we insert a dynamic value in the Email Body of an Email Template in Salesforce?Yes, you can use "VisualForce Email Template" by this you can pass dynamic values in Email template.
Thanks
-
Parul
MemberSeptember 18, 2018 at 1:29 pm in reply to: How many Salesforce Reports can a Dashboard contain?Hi
Add some more points:
DashBoard support Summary and Matrix report type and dashboard support tabular also but tabular report if rows are limited (maximum 10).
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. Examples include contact mailing lists and activity reports.
Summary reports are similar to tabular reports, but also allow users to group rows of data, view subtotals, and create charts. They can be used as the source report for dashboard components. Use this type for a report to show subtotals based on the value of a particular field or when you want to create a hierarchical list, such as all opportunities for your team, subtotaled by Stage and Owner. Summary reports with no groupings show as tabular reports on the report run page.
Matrix reports are similar to summary reports but allow you to group and summarize data by both rows and columns. They can be used as the source report for dashboard components. Use this type for comparing related totals, especially if you have large amounts of data to summarize and you need to compare values in several different fields, or you want to look at data by date and by product, person, or geography. Matrix reports without at least one row and one column grouping show as summary reports on the report run page.
Watch Video Demo Building Matrix ReportsJoined reports let you create multiple report blocks that provide different views of your data. Each block acts like a “sub-report,” with its own fields, columns, sorting, and filtering. A joined report can even contain data from different report types.
Watch Video Demo Introducing Joined Reports in SalesforceThanks.