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

Load dynamic data into a table using Lightning Web Component

Create a custom tab to display a Lightning Web Component
Nov 04, 2021

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

5 reasons to choose WordPress as your content management tool

Popularity. Flexibility. SEO. Free and paid plans. Awesome editor
Jul 31, 2020
As Engineer I installed WordPress many times, facing issues such as performance and security. When you host WordPress by your own...

image post

How to connect to a PostgreSQL database in Node.js

Connect to Postgres database in Node js using pg and parse-database-url packages
Jul 28, 2020
A simple example about how to connect to a PostgreSQL database using Node.js

image post

How to use a GitHub repository as a dependency in Node.js

Aug 30, 2020
Sometimes you need a dependency that is not published as a regular package at npmjs.com

image post

Template of Java web and Heroku

Jul 31, 2020
I’ve worked in several projects with Java, specially Java web using Tomcat as a web container and then Glassfish as application server.

image post

Optimizing Node JS code

Small actions that may generate big impact in your performance
Aug 03, 2020
At different levels you might optimize your JavaScript code. Sometimes optimization is a matter of good practices such as avoid using logging in loops.

image post

How to render HTML in Jade

Jade is a Node.js template engine that uses indentation as part of the syntax
May 15, 2021
By default, Jade buffers the output so we have to be explicit when we want unbuffered code

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

Redirect all requests from HTTP to HTTPS in Node.js and Express

How to redirect all non secure requests to HTTPS in Node.js and Express
Jun 15, 2020
The first step will be to create a method to guess if the HTTP request comes from HTTP or HTTPS (secure or not secure). In some context like AWS or Heroku you will have to ask by the header x-forwarded-proto instead of req.secure.

image post

How to connect to a Redshift database from Node.js

See how to use pg-promise to connect to a AWS Redshift database
Aug 11, 2020
A util piece of code to connect to a Redshift database

image post

Node.js and typescript project template

Oct 08, 2021
A project template with typescript, jest and linter among others configurations

image post

How to setup Github Actions workflow lint

Configure a workflow to execute your linter when pushing code
Apr 25, 2021
How to setup Github Actions workflow lint

image post

Define environment variables in Tomcat

Aug 29, 2020
Sometimes you want to change the behavior of your code without recompiling or deploying.

image post

error authenticating with auth code due to: grant type not supported

error authenticating with auth code due to: grant type not supported
Aug 31, 2021
error authenticating with auth code due to: grant type not supported

image post

Configure Prettier in your Node JS project

How to configure Prettier to format your code as It was written by only one developer
Aug 08, 2020
Prettier is a code formatter that supports many languages and can be integrated with most of the editors

image post

pg-promise self signed certificate error in Postgres

To fix this issue you have to use the package with the following recommendations
Aug 20, 2020
If you are using Node.js with some of these packages: pg-promise or pg probably you are facing this issue.

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

This is most likely not an error with the salesforce cli

Please ensure all information is accurate and try again. (Salesforce)
Oct 07, 2021
Error authenticating with auth code due to: grant type not supported

image post

Protect your social networks with two-factor authentication

See how to protect the most used social networks
Apr 29, 2021
Nowadays a super complex password is not enough to avoid being hacked. In fact, most of the times your password is not guessed by brutal force (try until it works).

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

image post

How to connect to a MySQL database in Node.js

Oct 12, 2021
To connect to a MySQL database in Node.js is pretty straightforward with the module mysql2.

image post

Node.js Express Mysql stack deployed on Heroku

How to build a rest API from zero using Node.js, Express and MySQL
Oct 09, 2021
Let's build a Rest API from scratch that uses a MySQL database. We are going to use Node.js and Express as a framework to generate some scaffolding for our Rest API

image post

Lightning data table conditional cell color

Set text or background color for lightning data table rows
Jan 13, 2022
Let say you want to highlight a cell in a Lightning data table (lightning:datatable) when a specific value is invalid. In our example, we want to display those invalid emails in red.

image post

How to send a pushengage notification with node-fetch

Send push notifications using pushengage.com through Node.js and node-fetch module
Jan 14, 2022
Sending push notifications from pushengage.com dashboard is pretty easy but what about f we want to automate some process in our web site?