Tag Archives: Salesforce

Clone Opportunity with Products

      No Comments on Clone Opportunity with Products

I released the 2nd version of the app which I built half a year ago. ┬áPrevious version of the app had some limitations like you can’t control the number of columns on edit product layout and the field which you want to carried over in new opportunity. Few Salesforce customers have been using it for last 6 months and they… Read more »

Setup web-to-lead form with dependent country and state fields in Salesforce

This is a question which I came across on the success community and which made me realise that it could be something which admins always look for an answer. Through this blog post I am going to give a simple solution which can even used by a Salesforce Admin who is not good with code. If you are a Salesforce… Read more »

Clone Opportunity with Products action on Opportunities ( Lightning Component )

I am following this idea since I needed this feature in one of my projects. Since Salesforce already has this in their future roadmap, I realized that It could be an addition to my #GivingBackToCommunity list. I managed to create a lightning component which can be used with lightning action on Opportunity records. This will allow users to clone an… Read more »

How to create table with resizable columns using Lightning Design System ( Column Resizable DataTable )

Lightning design system comes with some really nice cascading stylesheet but still, there are some components where JS support is not provided. During a project, I came across the same where I had to write Javascript code by myself. After going many rounds of testing and changes, finally, I managed to get it working. It’s Data Table┬ácomponent which I am… Read more »

Salesforce Cookies #12

      No Comments on Salesforce Cookies #12

How to remove the arrows from lightning:input[type=”number”]? I think this is a generic question and Salesforce devs have looked for the ways to get rid of the spin buttons on the input field without changing it to text type for a purely numeric┬ábehaviour. You just need a few lines of CSS to solve your problem. We need some CSS which… Read more »

Salesforce Cookies #10

      No Comments on Salesforce Cookies #10

Creating a dynamic SOQL which includes all the fields I have seen this question several times on developer forums and I thought it could be another addition to Salesforce cookies. If you are wondering how can you query all the fields of an object then you can use the following code snippet. View the code on Gist. The above code… Read more »

Salesforce Cookies #9

      No Comments on Salesforce Cookies #9

Populating merge fields in Salesforce Email Template without sending the email / Preview Email Template Recently, I faced a challenge while working on a small project in which I had to send email through apex using email templates. I am calling it a challenge because of the problem I faced and I am sharing the solution/workaround I found for this…. Read more »

Salesforce Cookies #8

      No Comments on Salesforce Cookies #8

How to use namespace in managed lightning components If you are working on a lightning component and it’s going to be a part of a managed package then you need to take care of namespace in client side JS code if you are accessing any custom field. This can be handled in various ways but I found one very quick… Read more »

Salesforce Cookies #7

      No Comments on Salesforce Cookies #7

Calling a child lightning component method from the parent lightning component When we have multiple nested components then we may run into a scenario in which our parent lightning component is supposed to call a method of its child component. This is a very common use case. simplifies the code needed for a parent component to call a method on… Read more »