image post

How to convert sforce.apex.execute to Lightning

Use a Lightning Component to make your JavaScript buttons work when your move to Lightning Experience
Jun 18, 2020
Let’s see how to convert a Salesforce JavaScript button that uses sforce.apex.execute in to Lightning Experience. The good news is you will reuse this code and the approach for all your similar buttons.

image post

Migrate sforce.connection.query to Lightning equivalent

Use Lightning Components to move your JavaScript buttons implemented for Classic
Jun 18, 2020
As you probably know, JavaScript buttons are not supported in Lightning Experience (LEX). In particular, you can’t use REQUIRESCRIPT. In this post, the idea is to show how to migrate a particular JavaScript button that uses sforce.connection.query sentence.

image post

SFDX - Error authenticating with auth code due to: grant type not supported

Common error when authenticating from SFDX CLI
Apr 27, 2021
Error authenticating with auth code due to: grant typw not supported. This is most likely not an error with the Salesforce CLI. Please ensure all information is accurate and try again

image post

Download Salesforce metadata using SFDX

How to download Salesforce metadata to your local machine using SFDX CLI
Feb 23, 2021
Download Salesforce metadata using SFDX

image post

Salesforce - Mock callouts in Apex

How to use mockups to tests callouts in Apex
Feb 19, 2021
Tests callouts in Apex

image post

Migrate $User, $Profile, $Label and $Api to Lightning Components

Rollout to Lightning by migrating non-supported JavaScript buttons
Jun 18, 2020
We can’t use $User, $Profile, $Label and $Api in Lightning. We need to implement a server-side solution.

image post

Detect record changes in a Lightning Component

Listen to events when a record changes outside your Lightning component
Apr 16, 2021
Listening to changes in a Lightning Component from record changes

image post

How to create files in Salesforce for testing purposes

ContentVersion and ContentDocumentLink creation from Apex
May 21, 2021
Fortunately, dealing with files in Salesforce in a unit text context, is pretty easy.

image post

How to send a message to AWS SQS queue from Salesforce Apex class

Surprisingly, making a callout to put a message in AWS SQS queue is tricky in Apex
Jan 31, 2021
How to post a message in an AWS SQS queue from an Apex class in Salesforce

image post

How to download a Salesforce file from Node.js

A JavaScript snippet to download a Salesforce file using the Rest API
Apr 20, 2021
Download a file from Salesforce using Node.js

image post

How to download a file from Salesforce using Java Rest API

A Java snippet to download a Salesforce file through the Rest API
Apr 20, 2021
Let say we want to download a file stored in Salesforce. We'll have to deal with ContentVersion

image post

How to add a pie chart in Campaign’s record page in Salesforce

Add a cool chart in a record page easily. No code.
Aug 30, 2020
What about if we add a component with a pie chart on the Campaign object’s record page?

image post

Salesforce client for an Apex RESTful web service

Expose a Rest service from an Apex class using RestResource annotation
Aug 29, 2020
An example about how to consume a Salesforce api rest

image post

Magic Mover for Notes And Attachments to Lightning Experience

Get ready for Lightning Experience by migrating your attachments and notes
May 22, 2021
Files are more versatile and provide better functionality than attachments. Attachments can only be attached to a single record, while files...

image post

Get Visualforce usage stats from VisualforceAccessMetrics

How to find out how often your Visualforce pages are accessed using Visualforce Access Metrics
Aug 08, 2020
If you want to know how frequently your Visualforce pages are accessed, you just have to run a simple query on VisualforceAccessMetrics