Skip to content

Instantly share code, notes, and snippets.

@smileham
smileham / GetSObjects.ajs
Last active November 28, 2023 15:58
GetSObjects.ajs #jarchi #salesforcecli #salesforce #sfdx
/*
* Get sObjects via Salesforce CLI
*
* Please ensure you have first authenticated against your Salesforce sandbox and have defined an Alias
* No Warranty is provided for this script.
*
* Script calls the Salesfoce CLI for a given alias and retrieves all sObject records, these are created
* as "Data Objects", set with a specialization of sObject and stored in a folder.
*
* A second script can then populate the detail of selected sObjects (DescribeSObjects)
@smileham
smileham / DescribeSObjects.ajs
Last active November 28, 2023 15:58
DescribeSObjects.ajs #jarchi #salesforcecli #salesforce #sfdx
/*
* Describe sObjects in view via Salesforce CLI
*
* Please ensure you have first authenticated against your Salesforce sandbox and have defined an Alias
* No Warranty is provided for this script.
*
* This script if a Proof of Concept to populate the detail of selected sObjects created via the GetSObjects script
*
* Once the model has been populated with Salesforce sObjects, create a new view using the sObjects you
* wish further detail on.
@smileham
smileham / GetInstalledPackages.ajs
Created November 28, 2023 16:06
GetInstalledPackages
/*
* Get Installed Packages via Salesforce CLI
*
* Please ensure you have first authenticated against your Salesforce sandbox and have defined an Alias
* No Warranty is provided for this script.
*
* This script if a Proof of Concept to create Application Components based on Installed Packages in a SF sandbox
*
* Running this script will then:
* * Create new Managed Packages folder
@smileham
smileham / sfdd.ps1
Last active November 12, 2024 10:16
Powershell script to create a Salesforce Data Dictionary in CSV/Excel or JSON formats
# usage sfdd ALIAS
# Needs ImportExcel Module installed
# Needs sf cli installed
# v1. First release
# v2. Included Record Types
# v3. Added PUML
# v4. Add Ignore list (Json format {"ignoreObjects":["Object","Object2"],"ignorePackages":["package1"]})
# v5. Added support for BigER
# v6. Tinkering with Google Data Catalog
@smileham
smileham / AI-GenerateAnalysis.ajs
Last active February 21, 2026 10:47
A suite of scripts for jArchi and the Archi modelling tool to enable integration between the tool and LLM such as Gemini from Google
/*
* Generate AI Analysis (Requires AI-REST.js and Export To Markdown.ajs)
*
* Requires:
* * jArchi - https://www.archimatetool.com/blog/2018/07/02/jarchi/
* * AI-REST.js - Package to support connections to LLM (Gemini/GPT)
* * persona.json - templates for standard persona and prompts - https://gist.github.com/smileham/8cbb3116db7f0ee80bcab4f1a57d14a8#file-persona-json
* * Export to Markdown.ajs - https://gist.github.com/smileham/578bbbb88dc0ed5a1403f3b98711ec25
*
* Version 1: Gemini API
@smileham
smileham / Meta Model and Patterns-Architecture Landscape - Baseline.md
Created September 22, 2025 15:04
Example of Markdown generated by "Export to Markdown.ajs" script - for consumption by LLM scripts