79.9 F
Tuesday, September 26, 2023

Build a Salesforce CLI plugin to invoke static methods of an Apex class | Mini Hacks Solved


In this video, you will learn how to build a Salesforce CLI Plugin to invoke the apex methods of an apex class. The CLI plugin we create will help you learn how to work with Salesforce tooling APIs. You will also learn how to create user interfaces for your Salesforce CLI custom plugins.

Improved Salesforce CLI Plugin Developer Guide – https://github.com/salesforcecli/cli/wiki
API Docs for @salesforce/core NPM – https://forcedotcom.github.io/sfdx-core
How to use @Salesforce/sf-plugin-core NPM – https://github.com/salesforcecli/sf-plugins-core#readme
Prompt Class Inquirer – https://github.com/SBoudrias/Inquirer.js
Apex Class Object – https://developer.salesforce.com/docs/atlas.en-us.238.0.api_tooling.meta/api_tooling/tooling_api_objects_apexclass.htm
Symbol Table Tooling API Reference – https://developer.salesforce.com/docs/atlas.en-us.238.0.api_tooling.meta/api_tooling/tooling_api_objects_apexclass.htm
JSForce docs for Tooling API – https://jsforce.github.io/document/#tooling-api
Salesforce Tooling API Developer Guide –https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/intro_soap_overview.htm
TypeScript for Salesforce Developers – https://developer.salesforce.com/blogs/2022/03/how-to-use-typescript-with-salesforce-part-1

Features and Tools needed:
Salesforce CLI, Command Prompt or Terminal, VS Code, TypeScript

00:00 Introduction
01:33 Requirements walkthrough
06:16 Set up your Development environment
09:15 Creating the plugin project scaffold
14:00 Generate command
30:10 Link your Salesforce CLI Plugin to Salesforce Project
33:40 Apex Object and Symbol Table walkthrough
39:15 Creating User Interface for your CLI
54:14 Code walkthrough
56:10 Closing Remarks

Connect with Salesforce Developers:
Join the Community: www.salesforce.com/devcommunity
Website: https://developer.salesforce.com/
LinkedIn: https://linkedin.com/showcase/salesforce-developers
Twitter: https://twitter.com/salesforcedevs
Facebook: https://facebook.com/salesforcedevs/

Share post:

crm erp


More like this

Claris Connect and AWS — Getting Started

The Claris Platform continues to evolve and expand with...

Dreamforce 2023 Developer Keynote: The Future of Development

Join President and Chief Engineering Officer, Srini Tallapragada, and...

codeLive: Einstein Studio

Join Danielle and Data Cloud product experts to view...

Pause 2023 Takes Place Next Week!

Today, as ever, two factors are essential to Pause...