Skip to content

Commit

Permalink
TEOC: Release 3.2 (#250)
Browse files Browse the repository at this point in the history
* Release 3.2

* package lock files
  • Loading branch information
v-saikirang committed Sep 23, 2024
1 parent 56ac035 commit e0a898d
Show file tree
Hide file tree
Showing 36 changed files with 17,034 additions and 14,924 deletions.
2 changes: 1 addition & 1 deletion Deployment/appPackage/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://developer.microsoft.com/en-us/json-schemas/teams/v1.15/MicrosoftTeams.schema.json",
"manifestVersion": "1.15",
"version": "3.1.0",
"version": "3.2.0",
"id": "bef61400-db9b-41d4-a617-403deb7bbe77",
"packageName": "com.microsoft.teams.extension",
"developer": {
Expand Down
25 changes: 19 additions & 6 deletions Deployment/provisioning/EOC-Provision.ps1
Original file line number Diff line number Diff line change
@@ -1,22 +1,35 @@
param([string]$AdminEmail,
[string]$TenantName)
[string]$TenantName,
[string]$SiteName,
[string]$ClientID)

$FilePath = Read-Host "Enter site template XML schema file path";
$FilePath = $FilePath.Trim();

Write-Host $FilePath

$TenantName = Read-Host "Enter tenant name: (contoso)";
if (($TenantName -eq "") -or ($null -eq $TenantName)) {
$TenantName = Read-Host "Enter tenant name: (contoso)";
}
$TenantName = $TenantName.Trim();

$AdminEmail = Read-Host "Enter tenant admin email";
if (($AdminEmail -eq "") -or ($null -eq $AdminEmail)) {
$AdminEmail = Read-Host "Enter tenant admin email";
}
$AdminEmail = $AdminEmail.Trim();

$SiteName = Read-Host "Enter site name. Allowed characters for site name are underscore, dashes, single quotes, and periods (_,-,',.), and can't start or end with a period.";
if (($SiteName -eq "") -or ($null -eq $SiteName)) {
$SiteName = Read-Host "Enter site name. Allowed characters for site name are underscore, dashes, single quotes, and periods (_,-,',.), and can't start or end with a period.";
}
$SiteName = $SiteName.Trim();

$SiteURL = $SiteName -replace " ", ""

if (($ClientID -eq "") -or ($null -eq $ClientID)) {
$ClientID = Read-Host "Enter AzureAppId/ClientId";
}
$ClientID = $ClientID.Trim();

# verify the PnP.PowerShell module we need is installed
if (-not (Get-Module -ListAvailable -Name PnP.PowerShell )) {
Write-Warning "Could not find the PnP.PowerShell module, installing it"
Expand All @@ -29,7 +42,7 @@ else {
$TenantURL = "https://$TenantName.sharepoint.com"
$EOCSiteURL = "/sites/$SiteURL"

Connect-PnPOnline -Url $TenantURL -Interactive
Connect-PnPOnline -Url $TenantURL -Interactive -ClientId $ClientID

try {
Write-Host "Checking if site already exists at $EOCSiteURL"
Expand Down Expand Up @@ -59,7 +72,7 @@ try {

}

Connect-PnPOnline -Url $TenantURL$EOCSiteURL -Interactive
Connect-PnPOnline -Url $TenantURL$EOCSiteURL -Interactive -ClientId $ClientID

Write-Host "Creating lists in $SiteName site"

Expand Down
5 changes: 4 additions & 1 deletion Deployment/provisioning/EOC-SiteTemplate.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<pnp:FieldRef ID="db8d9d6d-dc9a-4fbd-85f3-4a753bfdc58c" Name="_LikeCount" DisplayName="Like count" />
<pnp:FieldRef ID="cb19284a-cde7-4570-a980-1dab8bd74470" Name="_ExtendedDescription" DisplayName="Description" />
</pnp:FieldRefs>
</pnp:ListInstance>
</pnp:ListInstance>
<pnp:ListInstance Title="Form Templates" Description="This library contains administrator-approved form templates that were activated to this site collection." DocumentTemplate="" TemplateType="101" Url="FormServerTemplates" MinorVersionLimit="0" MaxVersionLimit="0" DraftVersionVisibility="0" TemplateFeatureID="00bfea71-e717-4e80-aa17-d0c71b360101" EnableAttachments="false" EnableFolderCreation="false" DefaultDisplayFormUrl="{site}/FormServerTemplates/Forms/DispForm.aspx" DefaultEditFormUrl="{site}/FormServerTemplates/Forms/EditForm.aspx" DefaultNewFormUrl="{site}/FormServerTemplates/Forms/Upload.aspx" ImageUrl="/_layouts/15/images/itdl.png?rev=47" IrmExpire="false" IrmReject="false" IsApplicationList="false" ValidationFormula="" ValidationMessage="">
<pnp:ContentTypeBindings>
<pnp:ContentTypeBinding ContentTypeID="0x010100F8EF98760CBA4A94994F13BA881038FA" Default="true" />
Expand Down Expand Up @@ -326,6 +326,9 @@
<pnp:DataRow>
<pnp:DataValue FieldName="Title">Logistics Coordinator</pnp:DataValue>
</pnp:DataRow>
<pnp:DataRow>
<pnp:DataValue FieldName="Title">Planning Coordinator</pnp:DataValue>
</pnp:DataRow>
<pnp:DataRow>
<pnp:DataValue FieldName="Title">New Role (Specify a new role to be created and assign users to)</pnp:DataValue>
</pnp:DataRow>
Expand Down
5 changes: 4 additions & 1 deletion Deployment/provisioning/Upgrade/EOC-UpdateLookupColumn.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ $SiteURL = $SiteURL.Trim();

Write-Host $SiteURL

$ClientID = Read-Host "Enter AzureAppId/ClientId";
$ClientID = $ClientID.Trim();

#Parameters
$ParentListName = "TEOC-IncidentStatus"
$ChildListName = "TEOC-IncidentTransaction"
$LookupColumnName = "Status"

try {
#Connect to SharePoint Online site
Connect-PnPOnline $SiteURL -Interactive
Connect-PnPOnline $SiteURL -Interactive -ClientId $ClientID

#Get all items from TEOC-IncidentStatus list
$items = Get-PnPListItem -List $ParentListName
Expand Down
7 changes: 5 additions & 2 deletions Deployment/provisioning/Upgrade/Update-EOC-Provision.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ $TenantName = $TenantName.Trim();
$SiteName = Read-Host "Enter your existing TEOC site name";
$SiteName = $SiteName.Trim();

$ClientID = Read-Host "Enter AzureAppId/ClientId";
$ClientID = $ClientID.Trim();

# verify the PnP.PowerShell module we need is installed
if (-not (Get-Module -ListAvailable -Name PnP.PowerShell )) {
Write-Warning "Could not find the PnP.PowerShell module, installing it"
Expand All @@ -23,7 +26,7 @@ else {
$TenantURL = "https://$TenantName.sharepoint.com"
$EOCSiteURL = "/sites/$SiteName"

Connect-PnPOnline -Url $TenantURL -Interactive
Connect-PnPOnline -Url $TenantURL -Interactive -ClientId $ClientID

try {
Write-Host "Checking if site exists at $EOCSiteURL"
Expand All @@ -37,7 +40,7 @@ try {
return;
}

Connect-PnPOnline -Url $TenantURL$EOCSiteURL -Interactive
Connect-PnPOnline -Url $TenantURL$EOCSiteURL -Interactive -ClientId $ClientID

Invoke-PnPSiteTemplate -Path $FilePath -ErrorAction Stop -WarningAction SilentlyContinue

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<pnp:Preferences Generator="PnP.Framework, Version=1.8.3.0, Culture=neutral, PublicKeyToken=0d501f89f11b748c" />
<pnp:Templates ID="CONTAINER-TEMPLATE-8315D078DB6D4FF9A32C5E2397D54645">
<pnp:ProvisioningTemplate ID="TEMPLATE-8315D078DB6D4FF9A32C5E2397D54645" Version="1" BaseSiteTemplate="STS#3" Scope="RootSite">
<pnp:Lists>
<pnp:Lists>
<pnp:ListInstance Title="TEOC-Config" Description="Use this list to configure the format of the Teams name created for each incident" DocumentTemplate="" TemplateType="100" Url="Lists/TEOCConfig" EnableVersioning="true" MinorVersionLimit="0" MaxVersionLimit="50" DraftVersionVisibility="0" TemplateFeatureID="00bfea71-de22-43b2-a848-c05709900100" EnableFolderCreation="false" DefaultDisplayFormUrl="{site}/Lists/TEOCConfig/DispForm.aspx" DefaultEditFormUrl="{site}/Lists/TEOCConfig/EditForm.aspx" DefaultNewFormUrl="{site}/Lists/TEOCConfig/NewForm.aspx" ImageUrl="/_layouts/15/images/itgen.png?rev=47" IrmExpire="false" IrmReject="false" IsApplicationList="false" ValidationFormula="" ValidationMessage="">
<pnp:ContentTypeBindings>
<pnp:ContentTypeBinding ContentTypeID="0x01" Default="true" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<pnp:Preferences Generator="PnP.Framework, Version=1.8.3.0, Culture=neutral, PublicKeyToken=0d501f89f11b748c" />
<pnp:Templates ID="CONTAINER-TEMPLATE-8315D078DB6D4FF9A32C5E2397D54645">
<pnp:ProvisioningTemplate ID="TEMPLATE-8315D078DB6D4FF9A32C5E2397D54645" Version="1" BaseSiteTemplate="STS#3" Scope="RootSite">
<pnp:Lists>
<pnp:Lists>
<pnp:ListInstance Title="TEOC-Config" Description="Use this list to configure the format of the Teams name created for each incident" DocumentTemplate="" TemplateType="100" Url="Lists/TEOCConfig" EnableVersioning="true" MinorVersionLimit="0" MaxVersionLimit="50" DraftVersionVisibility="0" TemplateFeatureID="00bfea71-de22-43b2-a848-c05709900100" EnableFolderCreation="false" DefaultDisplayFormUrl="{site}/Lists/TEOCConfig/DispForm.aspx" DefaultEditFormUrl="{site}/Lists/TEOCConfig/EditForm.aspx" DefaultNewFormUrl="{site}/Lists/TEOCConfig/NewForm.aspx" ImageUrl="/_layouts/15/images/itgen.png?rev=47" IrmExpire="false" IrmReject="false" IsApplicationList="false" ValidationFormula="" ValidationMessage="">
<pnp:ContentTypeBindings>
<pnp:ContentTypeBinding ContentTypeID="0x01" Default="true" />
Expand Down
Loading

0 comments on commit e0a898d

Please sign in to comment.