I need the Metadata for my Salesforce Org (Sandbox for Testing, then Productive) to setup Single Sign-On.
The Description here:
https://help.salesforce.com/s/articleView?id=sf.identity_provider_examples_3p_adfs.htm&type=5
says in the section "Configure Salesforce" :
"Salesforce metadata is downloaded as an XML file that AD FS 2.0 can consume."
However, I find no way to download the metadata file in the saleforce setup.
Under "SAML Single Sign-On Settings" I find the option to import a metadata file, but nowhere a way to export the salesforce metadata.
Any hint how this can be done is highly appreciated.
I've automated this process with a Bash script that uses the Salesforce CLI and 'jq'. It lists all metadata types, retrieves them individually, and reports the total execution time. This can be useful for backup purposes, deployments, or simply understanding your org's configuration. The script is hosted on GitHub
. Any feedback on how to improve this would be greatly appreciated!
GitHub Link:
https://github.com/falgun-panara/Salesforce-Metadata-Retrieval-Script/