Priority
(Low) Something is a little off
Description
Unless I'm missing something I don't see a way to indicate the type of orgassets library when adding, and the information doesn't show up during listing.
Here's a reference to the related powershell: https://learn.microsoft.com/en-us/sharepoint/organization-assets-library#use-microsoft-powershell-to-specify-a-library-as-an-organization-assets-library
Specifically: Add-SPOOrgAssetsLibrary -LibraryUrl [-ThumbnailUrl ] [-OrgAssetType ] [-CdnType ]
Let's add an extra option to fix this.
Option
| Option |
Description |
-o, --orgAssetType [orgAssetType] |
Specifies the OrgAssets type. Allowed values ImageDocumentLibrary, OfficeTemplateLibrary, OfficeFontLibrary. Defaults to ImageDocumentLibrary. |
Implementation
The value of the OrgAssetsType is currently hardcoded in the CSOM call as an enum parameter with the value 1. We'll map the allowed value to its enum value and replace the hardcoded value:
| Type |
Enum value |
| ImageDocumentLibrary |
1 |
| OfficeTemplateLibrary |
2 |
| OfficeFontLibrary |
4 |
Priority
(Low) Something is a little off
Description
Unless I'm missing something I don't see a way to indicate the type of orgassets library when adding, and the information doesn't show up during listing.
Here's a reference to the related powershell: https://learn.microsoft.com/en-us/sharepoint/organization-assets-library#use-microsoft-powershell-to-specify-a-library-as-an-organization-assets-library
Specifically: Add-SPOOrgAssetsLibrary -LibraryUrl [-ThumbnailUrl ] [-OrgAssetType ] [-CdnType ]
Let's add an extra option to fix this.
Option
-o, --orgAssetType [orgAssetType]ImageDocumentLibrary,OfficeTemplateLibrary,OfficeFontLibrary. Defaults toImageDocumentLibrary.Implementation
The value of the OrgAssetsType is currently hardcoded in the CSOM call as an enum parameter with the value 1. We'll map the allowed value to its enum value and replace the hardcoded value: