-
Follow the instructions of your instructor to get a Salesforce org provisioned with Code Builder.
-
Make sure you write down your user id and password. You'll need them again later in this workshop.
-
In your browser, go to login.salesforce.com and log in to your org.
This tutorial will guide you through the process of installing Salesforce CLI, authenticating to a Salesforce Org, creating a Salesforce project, connecting your development org to the project, retrieving metadata, and deploying metadata from your local machine to the Salesforce org.
- Install Salesforce CLI (Skip if using Code Builder)
- Authenticate to Salesforce Org via CLI
Prompt Builder from Salesforce is a powerful tool that enables organizations to add generative AI capabilities to their business application. It allows organizations to create and manage prompt templates.
Sets of questions or instructions provided to a large language model to generate relevant content. To learn more complete the trailhead module below
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This class works if your class -meta.xml is of 60.0 version | |
public with sharing class SavePointReleaseCalloutExample { | |
public void basicAuthCallout() { | |
// Do a DML before callout | |
Savepoint sp = Database.setSavepoint(); | |
Account acc = new Account(); | |
acc.Name = 'Test'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csvtojson from 'csvtojson'; | |
import fs from 'fs/promises'; | |
// Define a reusable function for converting CSV to JSON | |
const convertCsvToJson = async ( | |
csvFilePath, | |
jsonFilePath, | |
objectType, | |
idPrefix = '' | |
) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_metadata: | |
major_version: 1 | |
minor_version: 1 | |
display_information: | |
name: Salesforce Slack Starter App | |
features: | |
bot_user: | |
display_name: Salesforce Slack Starter App | |
always_online: true | |
shortcuts: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "Retrieve From ChangeSet", | |
"type": "shell", | |
"command": "sfdx", | |
"args": [ | |
"force:source:retrieve", | |
"-n", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "Create Scratch org", | |
"type": "shell", | |
"command": "sfdx", | |
"args": [ | |
"force:org:create", | |
"-s", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Unique name for this workflow | |
name: Salesforce CI | |
# Definition when the workflow should run | |
on: | |
push: | |
branches: | |
- '*' | |
# Jobs to be executed | |
jobs: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { App, LogLevel, ExpressReceiver } = require('@slack/bolt'); | |
const jsforce = require('jsforce'); //jsforce open source library to connect to Salesforce | |
// Create Salesforce Connection | |
const oauth2 = new jsforce.OAuth2({ | |
// you can change loginUrl to connect to sandbox or prerelease env. | |
// loginUrl : 'https://test.salesforce.com', | |
clientId: process.env.SALESFORCE_CLIENT_ID, | |
clientSecret: process.env.SALESFORCE_CLIENT_SECRET, | |
redirectUri: 'https://94d7e0bbbc0e.ngrok.io/salesforce/oauth_redirect' |
NewerOlder