Salesforce Archives - Page 6 of 25

Salesforce | ALL ROWS

Author - Webner
|
0 Comments
|

How to get all records of sfobject including records in recycle bin of salesforce and undelete the records?

List objlst = [select id,isdeleted from sfobject ALL ROWS]; //Just add ALL ROWS at the end of SOQL, it retrieves all the records including deleted records in recycle bin:
System.debug(‘objlst Read more…

Salesforce: Execute flow from Process Builder

Author - Webner
|
0 Comments
|

How to execute flow from Process Builder in salesforce?
Sometime it is very useful to execute flow from the Process Builder. We can execute as many flows as we want. Flow can be used to create record, update record or send any alert or email to the user. In this Read more…

Salesforce | Best Practices

Author - Webner
|
0 Comments
|

Best Practices for Salesforce

For Apex Classes:

1. Use Asynchronous Apex methods like @future methods, batch processing, scheduler that does not need to be executed synchronously.
2. Asynchronous Apex should be “bulkified”. It means able to handle collections of records.
3. Apex code must have appropriate exception handling Read more…

Salesforce | Steps to create Web To Lead form

Author - Webner
|
0 Comments
|

Steps to create Web To Lead form in Salesforce

Steps To Follow:
1. Login to your Salesforce account.
2. Click on Setup.
3. Under Build, section click on customize.
4. Click on Leads.
5. Under leads click on the web to Lead.
Show in Below ScreenShot:

6. Web Read more…

Salesforce | Why to use @TestVisible annotation

Author - Webner
|
0 Comments
|

Problem: Why we use @TestVisible annotation for a private method and private variable of a Class in Salesforce?

Description: I have a situation where I want to call a private method of a class in the test class, whenever I tried to call the private Read more…

Salesforce | How to track email sent by workflows or process builder in email history section of record?

Author - Kiran Preet
|
0 Comments
|

1.Create an email template.
For example, we created a template called “Leads: Welcome email”
Somewhere in the template, add “ref:{Object Id of the record}” which you want to track the activity
For example, in our template, we added ref: {!Lead.Id}. If you want to hide this line Read more…

Does Java support call by reference?

Author - Webner

Java does not support call by reference because in call by reference we need to pass the address and address are stored in pointers. Java does not support pointers and it is because pointers break the security. Java does manipulate objects by reference and all object variables are references. Pass Read more…

Selenium | how to upload a csv file with Selenium script

Author - Namisha

In this post I will give an example of how to upload a csv file with Selenium script to a webpage. Below is the screenshot of webpage:

Code to automatically select a csv file and then click Submit button is given below. Go through the comments in the code.
package Read more…

How to show slanted text and images using CSS?

Author - Parminder Kaur
|
0 Comments
|

Slanted text and Images in CSS for different browser is given by transform property in CSS. We need to specify the angle by which to slant the image or text. Angle can be negative or positive. Positive angle inclines the image in clockwise direction and negative angle inclined it in Read more…

Salesforce | Trap incoming email and extract email content with attachments in salesforce

Author - Kiran Preet
|
0 Comments
|

Problem: Trap incoming email and extract email content with attachments in Salesforce
Solution: Salesforce provides us a mechanism to trap incoming emails on a specific email id and extra email contents including attachments out of it. To achieve this we need to follow these steps:

1 Read more…

PHP | Load Data Infile to insert csv data into Mysql with PHP

Author - Webner

Problem: How to insert csv data into mysql table with mysql query in php. What problems usually you face with this and how to resolve them.

Description: I have csv file with thousands of records. I want to insert these records in mysql table with php Read more…

Moodle/Totara | Creating a new Activity Plugin

Author - Webner

Introduction: In Moodle/Totara we can add a different type of activities to a course by selecting from the list of standard activities available. As shown in the the list below:

But there might be some cases in which we need to add a custom activity to a Read more…

CSS | Animate elements in background screen

Author - Neelam
|
0 Comments
|

We can move elements on background screen using CSS properties.

Below @keyframes rule specifies the animation code and “movement” gives a name to the animation:
@keyframes movement {
0 % {
background – position: 0 px 0 px,
0 px 0 px,
0 px 0 px
}
50 % {
background – color: #FFA07A
}
100 % {
background – position: 500 Read more…

Java | difference among return, continue, break and System.exit in Java

Author - Webner

Question: What is the difference between return, continue, break and System.exit statements in Java?

Answer: The differences among these 4 statements are described here Read more…

Selenium | Data Driven Framework to read csv data

Author - Webner

During testing, I had a test case to add multiple employees automatically with selenium script so I have implemented Data Driven Framework. Using this we have to read the data from the CSV and register all the users in the system.

Note:  We need to add a jar Read more…

Eclipse SVN | Working Copy XXXX Locked during commit

Author - Webner
|
0 Comments
|

When you do svn update or commit in Eclipse you may face this problem- “working copy xxxxx locked”

Solution: Sometimes the problem can be solved with “project cleanup” or “move the project to some other location without .project and .svn files”. But you may have to solve it Read more…

Enum in Java

Author - Richa

What is Enum/Enumeration?

Enum/Enumeration is a data type in Java which is used to store a fixed set of constant values. For example, number of days in a week or a set of arithmetic operators (addition, subtraction, multiplication and division) or status of a customer’s bank account Read more…

Java | Deep cloning object containing list of other objects

Author - Harleen Kaur

Suppose you have a class like this:
public class Student {
private String name;
private int rollNumber;
private int grade;
private List subjects;
}

This is the Subject class

public class Subject {
private String sName;
}
You have an object sObj1 of Student class and it also contains a list of subjects assigned Read more…

Hadoop | Creating and running Mapreduce Programs in Eclipse and from Command line

Author - Webner

We can create and run the java Mapreduce programs in Eclipse as well as from command line.
Using Eclipse – For Eclipse first we have to install the plugin for hadoop mapreduce which inherits the libraries required to implement the mapreduce functionality. After this we have to build the path which Read more…

Java | static blocks

Author - Webner

Static Blocks: Static block is used to initialize the static data members. It is executed before main method and constructor at the time of classloading. A class can have any number of static initialization blocks and they can appear anywhere in the class body. The runtime system guarantees Read more…

‹ Prev page1 2 3 4 5 6 7 8 9 10 11 ... 25 Next page ›