CMS 10.6 Adding Custom Macros
CMS 10.6 provides functionality for administrators to run custom macros directly from the CMS UI interface without direct custom hook file access. Administrators can run custom hook code on-demand with an executable macro.
Before running a custom macro from the CMS UI, add the function to CustomHooks.cs.
Important
Keep in mind custom macros
have limitations. Custom macros do not have access to HTTP.Context. Also, custom macros have
the same limitations as custom hooks. For example, if the custom macro has external
references, those references need to be included in the external harness project
references.
To add a custom macro function to CustomHooks.cs:
Next Steps: Run the custom macro from the CMS interface by clicking the Execute button in .
Note
Custom macros
interact with Web API. Consider testing macros to help minimize maintenance and to help
ensure the code runs as expected before fully running your custom macros.