GetTemplates
Gets the templates. Note: In the template object the icon and additional classes property are passed as null / empty value for now. This will be handled in future.
Syntax
// Assumes shellUI has been initialized with IShellUI instance
const results = await shellUI.Vault.ObjectOperations.GetTemplates({
object_type_id: 0,
class_id: 0,
search_keywords: [] /* Array of string */,
});
Message
Name | Description | Type |
---|---|---|
object_type_id | The object type of the templates. | number |
class_id | Optional class ID for fetching the templates of a specific class. | number |
search_keywords | The search keywords for the templates. | string[] |
Return type
Name | Description | Type |
---|---|---|
templates | Templates. | Template[] |
Example
{
"templates": [] /* Array of Template */
}