# Site collection 6.3.x updates











function Execute6.3SiteCollectionUpdates 





{





	#SiteCollectionUpdate_6.3_01 6311 Skip because of SiteCollectionUpdate_8.0_01





	SiteCollectionUpdate_6.3_02 6310





	SetTemplateVersion "6.3.1.1" -Assets -IgnoreWhenHigherVersion





}











# Upload Assets





function SiteCollectionUpdate_6.3_01($patchVersion)





{





	if ($patchCheck -ge $patchVersion -or $newSiteCollection) 





	{





		return





	}











	UploadAssets





}











# List: AnywhereNow UCC Creator, CT: A365 Site





# Add fields to content type: A365_LineUri





# Update choices in A365_SiteStatus field





# Update add, edit, display and listview forms





function SiteCollectionUpdate_6.3_02($patchVersion)





{





	if ($patchCheck -ge $patchVersion) 





	{





		return





	}











	AddPnPFieldFromXml '<Field ID="{383688af-0ed8-417b-8037-dbe6f70c7898}" Type="Text" Name="A365_LineUri" DisplayName="Line URI" Required="FALSE" Description="Telephone number of your contact center. For example: tel:+31012345678" Group="Anywhere365 Provisioning Site Columns" />' $null "A365_LineUri"





	AddPnPFieldsToContentType "A365 Site" @("A365_LineUri") @("Title", "A365_SiteTitle", "A365_SiteURL", "A365_Language", "A365_TimeZone", "A365_SiteStatus", "A365_SipDomain", "A365_CDRConnectionString", "A365_ParentSite", "A365_LineUri")





	$field1 = GetPnPField "A365_SiteStatus"





	$field2 = GetPnPField "A365_SiteStatus" "AnywhereNow UCC Creator"





	$updateChoices = @("Requested", "Provisioned")





	AddChoiceFieldItems @($field1, $field2) $updateChoices $false





	AddForms $updateSite_RelativeURL "A365_UCC_Creator" -RemoveIfExists





}




