Code Samples
Once you have started building your migration using the example code in C# or Python, you may want to further customize your migration using hooks. This section provides code samples to assist you.
Hook Registration
To use hooks, you need to register them with the plan builder.
The process of registering hooks differs slightly between C# and Python, as described below.
In Python, injecting an object into the class constructor is not supported, and in most cases, it is unnecessary.
To register a Python hook object, simply create the object and add it to the appropriate hook type collection.
Generic Form: plan_builder.[hook type collection].add([hook object])
Example:
plan_builder.filters.add(UnlicensedUsersFilter)