Templafy can be installed either from the Microsoft App Store, or by manually adding the .app file to the App Catalog.
Either way, we are unfortunately hit by limitations from Microsoft.
Pre-requisite for Sharepoint is to have Azure AD (OpenID) as the authentication method.
From Microsoft Store:
Adding the Templafy app from the Microsoft Store will result in manually deploying the app to every site on your Sharepoint, as Microsoft does not support Apps with 'CustomActions' being deployed via their Deployment Tool.
After the App has been added, all "Site Collection Administrators" are able to add the app to their respective sites. Users with lesser privileges will not be able to add the app.
From adding the .app file manually:
Apps can also be manually uploaded to SharePoint Online in the App Catalog. Even though the Deployment Tool is now available, Microsoft still does not support Apps with "CustomActions" being deployed via their Deployment Tool. If deployed this way, the Templafy button will not appear on sites, even though the app appears under "Site Contents".
Using the feature "SideLoading", we can deploy to multiple sites, even though this is not recommended by Microsoft, as enabling/disabling the feature requires Tenant Rights.
See the below PowerShell snippet for SideLoading the app to a single site, and contact Templafy to get the latest version of our SharePoint Online App.
###Import/Install the required Modules
Install-Module SharePointPnPPowerShellOnline
Import-Module Microsoft.Online.SharePoint.PowerShell -DisableNameChecking
$AppLocation = "<Path to the SPO Application.app>" #eg: "C:\Users\map\Desktop\Templafy_SharepointApp_2.6.0.0.app"
$site = "<URL of site to deploy to>" #eg: https://m365x855087.sharepoint.com/sites/sitename
$admin = '<your email>' #eg: map@templafy.com
$password = (ConvertTo-SecureString -AsPlainText "<your password>" -Force)
$context = New-Object Microsoft.SharePoint.Client.ClientContext($site)
$credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($admin , $password)
$context.Credentials = $credentials
$sideloading = new-Object System.Guid "AE3A1339-61F5-4f8f-81A7-ABD2DA956A7D";
$context.Site.Features.Add($sideloading, $true, [Microsoft.SharePoint.Client.FeatureDefinitionScope]::None)
$context.ExecuteQuery();
$context.Web.LoadAndInstallApp([System.IO.File]::OpenRead("$AppLocation"))
$context.ExecuteQuery()
$sideloading = new-Object System.Guid "AE3A1339-61F5-4f8f-81A7-ABD2DA956A7D";
$context.Site.Features.Add($sideloading, $false, [Microsoft.SharePoint.Client.FeatureDefinitionScope]::None)
$context.ExecuteQuery();
OBS! This script is for guide purposes and will not be supported or maintained by Templafy
Comments
0 comments
Please sign in to leave a comment.