salesforce


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

image post

Download Salesforce metadata using SFDX

How to download Salesforce metadata to your local machine using SFDX CLI
Andrés Canavesi - Feb 23, 2021
Download Salesforce metadata using SFDX

image post

Salesforce - Mock callouts in Apex

How to use mockups to tests callouts in Apex
Andrés Canavesi - Feb 19, 2021
Tests callouts in Apex

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
Andrés Canavesi - Jan 31, 2021
How to post a message in an AWS SQS queue from an Apex class in Salesforce

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.
Andrés Canavesi - 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
Andrés Canavesi - Aug 29, 2020
An example about how to consume a Salesforce api rest

image post

Get Visualforce usage stats from VisualforceAccessMetrics

How to find out how often your Visualforce pages are accessed using Visualforce Access Metrics
Andrés Canavesi - 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

Migrate sforce.connection.query to Lightning equivalent

Use Lightning Components to move your JavaScript buttons implemented for Classic
Andrés Canavesi - 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

How to convert sforce.apex.execute to Lightning

Use a Lightning Component to make your JavaScript buttons work when your move to Lightning Experience
Andrés Canavesi - 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.