- This workflow applies to the current repository.
- The git CLI (
git) and the GitHub CLI (gh) are already installed. - All versions use Semantic Versioning convention.
This document holds a list of resources for Philippe Ozil (@pozil)'s POST/CON 25 talk: "Build Multi-Agent Experiences with Agent Builder".
- Post: A2A protocol announcement
- Repo:A2A protocol repository
- Docs: MCP documentation
- Postman Workspace: Salesforce Developers
- Docs: Create and use AI tools in Postman
- Site: Postman's Public MCP Server Catalog
- Post: Heroku MCP server announcement
- Post: MuleSoft MCP server announcement
This file contains hidden or 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_REGEX="([0-9]+\.[0-9]+\.[0-9]+)" | |
| # Get local version | |
| LOCAL_VERSION=$(sf -v) | |
| if [[ $LOCAL_VERSION =~ $VERSION_REGEX ]] | |
| then | |
| LOCAL_VERSION="${BASH_REMATCH[1]}" | |
| echo Local CLI version: $LOCAL_VERSION | |
| else | |
| echo Could not retrieve local CLI version. |
This Gist explains how to draw a Sankey chart on the Salesforce Platform with Lightning Web Components. We use the Chart.js library and the chartjs-chart-sankey plugin. For the sake of simplicy we start from an existing Salesforce project: LWC Recipes.
- Install LWC Recipes and make sure that you can see the Chart.js recipe located in the 3rd Party Libs tab.
- Enable Lightning Web Security or you'll get the following error message:
TypeError: ResizeObserver is not a constructor
- Download the latest version of the chartjs-chart-sankey plugin from this CDN link and rename the file to
chartJsSankey.js.
This script lets you build JAR files with WSC from Salesforce WSDL files.
- Create a new directory and place this shell file in the directory.
- Obtain the Enterprise, Partner and Metadata WSDL files from your Salesforce org and place them in the folder.
- Run the
build-jars.shscript. - Grab the JAR files from the
builddirectory.
This file contains hidden or 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
| #!/bin/bash | |
| # Shell scripts that runs anonymous Apex with Salesforce CLI and filters out command output to only display time stamp and debug messages | |
| # Know limitation: the script doesn't support multiline log messages (it will only display the first line) | |
| # Get Apex file path from parameter or ask for it | |
| filePath="" | |
| if [ "$#" -eq 1 ]; then | |
| filePath="$1" | |
| else | |
| echo "Apex file path:" |
This file contains hidden or 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
| // ==UserScript== | |
| // @name GitHub Auto SSO | |
| // @namespace http://pozil.github.io | |
| // @version 1.0 | |
| // @description Adds a button that lets you automatically signs-in to all orgs that requires SSO login (instead of clicking 3x per org) | |
| // @author pozil | |
| // @match https://github.com/* | |
| // ==/UserScript== | |
| (function() { |
This file contains hidden or 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
| public with sharing class SlackIntegration { | |
| @future(callout=true) | |
| public static void postMessage(String url, String message) { | |
| Map<String, String> body = new Map<String, String>(); | |
| body.put('text', message); | |
| String bodyJSON = JSON.Serialize(body); | |
| HttpResponse response = sendRequest(url, 'POST', bodyJSON); | |
| if (response.getStatusCode() != 200) { | |
| throw new SlackException('Failed to post Slack Message ' + response.getBody()); |
This file contains hidden or 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
| function callbackExample() { | |
| setTimeout(_callback, 1000); | |
| console.log('This appears instantaneously'); | |
| } | |
| function promiseExample() { | |
| _longRunningOperation() | |
| .then(() => { | |
| console.log('This appears later'); |
This file contains hidden or 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
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| brew tap caskroom/cask && brew cask install java | |
| https://developer.salesforce.com/media/salesforce-cli/sfdx-osx.pkg | |
| sfdx update | |
| sfdx force:auth:web:login --setalias hub-org | |
| sfdx force:config:set defaultdevhubusername=username --global |
NewerOlder