salesforce

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

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

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

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

How to generate a random string in Apex

A Apex method to get a random string given a length
Andrés Canavesi - Oct 13, 2021

image post

This is most likely not an error with the salesforce cli

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

image post

Salesforce rest api download ContentVersion

Download a Salesforce file (ContentVersion) through the API using Node.js with jsforce package
Andrés Canavesi - Sep 09, 2021

image post

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

error authenticating with auth code due to: grant type not supported
Andrés Canavesi - Aug 31, 2021
error authenticating with auth code due to: grant type not supported

image post

Salesforce integration with AWS AppFlow, S3, Lambda and SQS

Send data out of Salesforce with AWS AppFlow service in realtime
Andrés Canavesi - 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

Magic Mover for Notes And Attachments to Lightning Experience

Get ready for Lightning Experience by migrating your attachments and notes
Andrés Canavesi - 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

How to create files in Salesforce for testing purposes

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

image post

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

Common error when authenticating from SFDX CLI
Andrés Canavesi - 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

How to download a Salesforce file from Node.js

A JavaScript snippet to download a Salesforce file using the Rest API
Andrés Canavesi - 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
Andrés Canavesi - Apr 20, 2021
Let say we want to download a file stored in Salesforce. We'll have to deal with ContentVersion

image post

Detect record changes in a Lightning Component

Listen to events when a record changes outside your Lightning component
Andrés Canavesi - Apr 16, 2021
Listening to changes in a Lightning Component from record changes