In the event of a necessity to document custom schemas, the absence of a readily available data dictionary table on ACS poses a challenge in terms of copying and pasting information into a document.
To address this concern, my colleague, Marco Campagnolo, has created a practical script/tool that can be utilized offline (still in initial development phase). This tool generates an HTML file encompassing data dictionary tables for your schemas, complete with relationship links, keys, and indexes. The only prerequisite for utilizing this tool is to acquire the "Generated schema" XML code derived from your Adobe Campaign Standard (ACS) schema.
- schema.xml: where you will paste the custom schema(s) xml code
- schema.xslt: transformation template
- script.ps1: powershell code which triggers the transformation process from xml code to html
Example of a generated file:
XSLT (Extensible Stylesheet Language Transformations) is a language originally designed for transforming XML documents into other XML documents,[1] or other formats such as HTML for web pages, plain text or XSL Formatting Objects. src: https://en.wikipedia.org/wiki/XSLT
Steps:
- Download the attached zip and uncompress
- Copy "Generated schema" XML code from ACS instance.
- Paste code within the root element of the file "schema.xml"
- <schemas></schemas>
- you may paste multiple schema(s) code inside the root element
- run the powershell script file "script.ps1"
- if you get an "PSSecurityException" error, you need to enable RemoteSign on your Powershell command line to be able to execute the script.
- execute the following Set-ExecutionPolicy RemoteSigned
- Re-execute, a new html file will be generated containing the schema dictionary.
Improvements: Whilst the script works, there are some improvements that could be made.
- enhanced html rendering
- ERD diagram generator --> goJS, mermaid.js?
- Compatibility with ACC
Credits: Marco Campagnolo, https://www.linkedin.com/in/marcocampagnolo/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.