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.