Applies to Product
Update Event Management app on all sites in the tenant using PowerShell
As of May 20th, 2024 enrollments have not been processed and appear blank in the Enrollment list. Among others, enrollees have not been receiving any e-mail invitations since then. We have sent a general email including all the details about the issue on May 21st. The email contains two workarounds for our existing customers. The 1st workaround is to replace the current Event Management version with a new one. This is quite easy if you have one or two sites with the Event Management app installed. If you have however a lot of SharePoint sites where the Event Management app is used, this can be quite time consuming to update the app on all sites manually. This is why we decided to provide a PowerShell script that can be used to automatically update the app on all the sites where the app is installed.
Upload the new app version to your tenant app catalog
Step 1: Download the new version
Here you can download the app package that solve the issue: Sapiens.at.SharePoint.SEVM.zip.
Download and unzip the app to a local folder.
Step 1: Open the app catalog site
Either open your app catalog site directly, or if you don’t remember the URL, follow the steps below. By default the URL is like this: https://[company].sharepoint.com/sites/appcatalog, but this could vary if it has been created manually.
- Sign in to Office 365 with your SharePoint Online admin account
- Open the SharePoint Admin Center, click on Show All and then on SharePoint


- Click on More features on the left and click on Open in the Apps section

Step 3: Replace the app in your App Catalog
You can now upload the new version to your app catalog. This will replace the existing version.
The Powershell Script to update the app on every site where the app is currently installed
If you have multiple websites and you want to update the app on all websites where the app is installed, please run the following Power Shell script. The script uses the PnpPowerShell module. If you don’t have the Pnp.PowerShell module installed, please follow the steps highlighted in the following article on pnp.github.io Installing PnP PowerShell | PnP PowerShell
In the PowerShell script below, update the [company] placeholder in the 3rd line. This is the only thing you have to change.
#Config Parameters
#Url of the admin portal (change the [company] placeholder below)
$AdminSiteURL="https://[company]-admin.sharepoint.com"
#id of the Event Management app (don't change this)
$AppID = [Guid]"DEFC22E8-1FFD-4187-82AA-2BCCAA438A2B"
#Connect to SharePoint Online Admin Center
Connect-PnPOnline -Url $AdminSiteURL -Interactive
#Get All site collections
$SiteCollections = Get-PnPTenantSite
#Loop through each site collection
Foreach ($Site in $SiteCollections)
{
#Connect to the site
Connect-PnPOnline -Url $Site.Url -Interactive
#Get the app tiles to check if the app is installed on this site
try{
$web = Get-PnPWeb –Includes AppTiles
} catch {
write-host ("Unable to access the site " + $Site.Url + ". Please check your permissions") -ForegroundColor Red
write-host ("")
write-host ("")
continue;
}
if(($web.AppTiles | where { $_.ProductId -eq $AppID }).Count -eq 0){
# app is not installed on this site -> continue with the next site
continue
}
#Get the app information
$appInfo= Get-PnPApp -Identity $AppID
write-host ("Uninstall app from " + $Site.Url)
try{
#uninstall the app
Uninstall-PnPApp -Identity $appInfo.id.guid
#wait until the app is gone
do {
write-host "Wait until app is removed"
Timeout /NoBreak /T 10
# connect again to check the app tiles if the app is gone
Connect-PnPOnline -Url $Site.Url -Interactive
$web = Get-PnPWeb –Includes AppTiles
$appGone = (($web.AppTiles | where { $_.ProductId -eq $AppID }).Count -eq 0)
} while($appGone -eq $false);
# install the app again
write-host ("Intall app to " + $Site.Url) -ForegroundColor Green
Install-PnPApp -Identity $appInfo.id.guid
write-host ("")
write-host ("")
} catch {
# not possible to re-install the app (unauthorized)
write-host ("Unable to re-install the app on " + $Site.Url) -ForegroundColor Red
}
}
That’s it! If you have any questions or need assistance, please contact our support team.