Tag Archives: Salesforce

SObject Lookup – Lightning Component

Introduction In salesforce lightning we don’t have any lookup field component like salesforce classic has <apex:inputfield>, which render as lookup for lookup and master detail relationships and also take care of , how to display lookup dialog or lookup result. However , there is a force:inputfield tag in salesforce lightning, But lookup field is not …

Continue reading

Testing Future Methods in Test Class

To test methods defined with the future annotation, call the class containing the method in a startTest(), stopTest()code block. All asynchronous calls made after the startTest method are collected by the system. When stopTest is executed, all asynchronous processes are run synchronously. For our example, please take a look at below test class. Future Method …

Continue reading

How to log status of a completed Batch Job Status

While we are processing bulk records in a batch Apex, we may need to know the status or want to keep log of completed batch. For example – one batch job is scheduled at night 4.00 AM, and every day we need to track whether current job status, whether It was success or failure. One way …

Continue reading

Delete records from multiple objects via apex batch class

In order to delete record from multiple Objects in batch , we can go ahead with below possible options. Using Custom Iterator to process List of Ids from multiple Objects – For Details : https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_iterable.htm Re-run batch after processiong 9999 records – I will explain it in my next post Call batches in Chain –  On …

Continue reading

Switch from one Tab to another in apex:Tab panel

Here is the sample code using which we can do navigate between tabs present inside apex:tabpanel. VF Code: Apex Controller:

Continue reading

Mobile App development for Salesforce Touch and Chatter Mobile

We can develop Salesforce Apps and it can be made available in Appexchange etc. But to make it available in mobile application Salesforce Chatter for iOS, Salesforce Chatter for Android and Salesforce Touch we need to give some permissions for the visualforce pages used in the application. The standard and custom object tabs will be available …

Continue reading

Steps of Publishing App in Appexchange

Appexchange is the real market place of Salesforce where we can find all kinds of apps roaming about. The users/clients can use those apps whenever they need it. Both kinds of apps are there Free and Paid. First of all, when the app and package is ready before starting the publishing process in appexchange  we have …

Continue reading

Salesforce LinkedIN Integration

Herein comes the Integration with Salesforce. We had a requirement to retrieve some information from LinkedIN and display them within Salesforce. LinkedIN provides an API for that. We used that API and retrieved information with the help of that. First of all we have to create a new application in LinkedIN HERE . In this application …

Continue reading

Some times, Why can’t we do inline editing in a List View?

I’ve got a custom object with a number of different record types. In the ListView I’m displaying a checkbox which I’d like to be able to check/uncheck inline since it would be so much quicker. I have enable the Inline Edit for my organisation ,unfortunately It was not working. I was not sure what else …

Continue reading

Calculate the number of days between two dates while excluding weekends.

This is the post regarding how to calculate working days excluding weekends( sat and sun). Sometimes we need to count the working days or leave of any employee excluding the weekends,then we need to write code for same. Actually it is not a difficult task,because salesforce provide the pre built methods of date.And we need …

Continue reading