dev


image post

First-time shipped implementation is like going into technical debt

What is technical debt and why you should pay attention to it?
Andrés Canavesi - Feb 22, 2022
Technical debt is often asymptomatic, making it difficult to prioritize, but once the symptoms appear, it may be too late and the associated costs may be much higher.

image post

MIXED_DML_OPERATION error and Apex unit tests (how to fix it)

This is a common error when we start to work with testing or manipulating some particular objects: setup and non-setup objects
Andrés Canavesi - Feb 09, 2022
One option is to use @future method but since that's for running in background, we cannot query that data in the next line due to it could be created or not.

image post

AWS suspended error AppFlow

The flow has been suspended due to an error in Salesforce when subscribing to the event.
Andrés Canavesi - 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

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.
Andrés Canavesi - 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

Dark Reader: A Chrome plugin to enable dark mode

Instantly read all your web pages in dark mode
Andrés Canavesi - Jan 23, 2022
Dark Reader is a Chrome plugin to start seeing instantly all the web pages in dark mode. It works pretty well with most of the sites

image post

Salesforce inspector: a Salesforce data explorer and exporter

Chrome and Firefox extension to inspect and export data from Salesforce
Andrés Canavesi - Jan 18, 2022
A productivity tool for Salesforce administrators and developers to inspect data and metadata directly from the browser without compromising security and privacy

image post

How to send a pushengage notification with node-fetch

Send push notifications using pushengage.com through Node.js and node-fetch module
Andrés Canavesi - 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?

image post

Lightning data table conditional cell color

Set text or background color for lightning data table rows
Andrés Canavesi - 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

jsonplaceholder - free and unlimited json API placeholder

Mock backend data with a free and unlimited json API
Andrés Canavesi - Jan 05, 2022
Frandom is a JSON Placeholder fake REST API that is mainly used for prototyping and testing.

image post

What is Node.js and what is the Event Loop

Node.js is a JavaScript runtime environment to run server-side web applications
Andrés Canavesi - Dec 03, 2021
Node.js provides simplicity in development because of its non-blocking I/O and even-based model results in short response time and concurrent processing, unlike other frameworks where developers have to use thread management.

image post

Getting some insights from Jacoco html report

A simple script to count packages that contain classes with low coverage
Andrés Canavesi - Nov 29, 2021
After running the Jacoco report generator we can open it and see the coverage results. There are some results the I wanted to know, for example, how many packages contain uncovered classes and how many contain coverage under a given threshold


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
Andrés Canavesi - Nov 19, 2021
Resource handler returned message: "Invalid request provided: AWS::AppFlow::FlowCreate Flow

image post

Call an Apex method from Process Builder

See how to configure a Flow with process builder to execute an Apex method in Salesforce
Andrés Canavesi - Nov 11, 2021
As a thumb of rule in Salesforce you should always try to create new business logic through point-and-click but sometimes our logic it's a bit special and we need some Apex code.

image post

Get Record Type id by name in Apex - Salesforce

SOQL query to get a record type by name to use it in Apex code
Andrés Canavesi - Nov 10, 2021
Based on this query we are going to build a method that gets the record type id by its name

image post

AppFlow Salesforce: how to sync up relationships

An elegant solution to sync up relationships from Salesforce to AppFlow
Andrés Canavesi - 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

flexsearch tutorial

We are going to build a small example to see how it works.
Andrés Canavesi - 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

Load dynamic data into a table using Lightning Web Component

Create a custom tab to display a Lightning Web Component
Andrés Canavesi - Nov 04, 2021

image post

Frandom API placeholder

Mock your backend using a placeholder API that returns random data
Andrés Canavesi - Oct 29, 2021
A simple API to generate random data such as companies and persons. It is open to the public. No API key required. No registration required.