Importing packages
Users can import internal packages (Stylelabs.M.SDK) or external packages (System) inside scripts. All scripts in Sitecore Content Hub are restricted.
Important
You can import only permitted packages to restricted scripts.
SDK packages
Import SDK packages as follows:
RequestResponse
using {package_name};
-
Example:
RequestResponse
using Stylelabs.M.Sdk.Clients.IEntitiesClient;
System packages
Import system packages as follows:
RequestResponse
using {package_name};
-
Example:
RequestResponse
using System.Math;