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

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

Test Driven Development (TDD) in a nutshell

Jul 24, 2020
Every project has somewhere in the src folder a file called utils.js, Utils.java, utils.py, etc....

image post

Compress a file in Node.js

Jul 27, 2020
Zip a file in Node.js it's easy using zlib

image post

Upload big files to S3 using Node.js

Stream big files from disk and upload them to AWS S3 bucket using chunks
Jul 29, 2020
Sometimes you need to upload a big file, let say bigger than 100MB. Stream from disk must be the approach to avoid loading the entire file into memory.

image post

Full-text search in Node JS - search related data

Search related content using FlexSearch package for Node.js. See an implementation example with Express framewrok
Aug 04, 2020
If you are building a website, e-commerce, a blog, etc., you will need a full-text search to find related content like Google does for every web 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

Mysql full text search (search related data)

Search related data in MySQL easily using Match and Against
Sep 01, 2020
Search related data in Mysql it's pretty easy

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 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 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

Download and save a file in Node.js

Get a file from a server and store it in your disk
May 13, 2021
Download a file in Node.js is pretty straightforward. We are going to make an implementation using native modules. No third parties.

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

Salesforce integration with AWS AppFlow, S3, Lambda and SQS

Send data out of Salesforce with AWS AppFlow service in realtime
Aug 24, 2021
There are many ways to sync up our Salesforce data with third parties. One option is a mix of Salesforce and AWS services, specifically Change Data Capture from Salesforce and AppFlow from AWS.


image post

flexsearch example

A super simple example to show how to index a collection of data and then run a full-text search
Sep 09, 2021
flexsearch It's an awesome package to index in-memory data

image post

flexsearch tutorial

We are going to build a small example to see how it works.
Nov 10, 2021
It's a module available through npm or yarn to index in-memory data. With this module, you will be able to search or display related data on your site. We are going to build a small example to see how it works.

image post

AppFlow Salesforce: how to sync up relationships

An elegant solution to sync up relationships from Salesforce to AppFlow
Nov 10, 2021
Only basic types such as strings or numbers can be passed through AppFlow which means that look-up fields will be ignored. There's a way you can do it with some work from using the Salesforce out-of-the-box Process Builder tool, a custom object and some lines of Apex code.

image post

Invalid request provided: AWS::AppFlow::FlowCreate - Salesforce integration

This is a common error when a field is mapped in App Flow but it doesn't exist in Salesforce
Nov 19, 2021
Resource handler returned message: "Invalid request provided: AWS::AppFlow::FlowCreate Flow


image post

AWS AppFlow error conflict executing request connector profile is associated with one or more flows

If we try to delete a connector from the AWS console and it is associated with one or many flows, it will display this error.
Feb 09, 2022
Let's say you have a Salesforce connector (it is valid for any other available) and the token expired. The only way so far is to delete and recreate the connection again. Would be nice to keep the same connection and run the handshake again but it is impossible nowadays.

image post

AWS suspended error AppFlow

The flow has been suspended due to an error in Salesforce when subscribing to the event.
Feb 09, 2022
AWS AppFlow suspended status error is sown for many reasons. You have to click on the <i>Suspended</i> word in the AWS console to see the extended error. Another option is to see it through the CLI

image post

Get Salesforce ContentVersion file info using node-fetch

How to get a Salesforce file info without downloading the file itself
Jul 07, 2022
Let's say you want to get the file info without downloading it. For example, you want to know the file name and extension.

image post

Download a Salesforce ContentVersion file using node-fetch

Download locally a file stored in Salesforce using node-fetch package for Node.js
Jul 07, 2022
Let's download a file (ContentVersion) from Salesforce using node-fetch


image post

Invoke Apex method from Salesforce Flow Builder

Sometimes the out of the box functionality is not enough to automate all our processes
Aug 04, 2022
Flow Builder is the replacement of Process Builder in Salesforce. Both of them are useful to automate several kinds of process but sometimes the out of the box functionality is not enough