# Site 8.3.x updates













# Add Teams UPN and Teams Phone columns to Agents list






function SiteUpdate_8.3_01($patchVersion)






{






	if ($patchCheck -ge $patchVersion) 






	{






		return






	}













	# Add new columns






	AddPnPFieldFromXml '<Field ID="{a3b7c8d9-1234-5678-9abc-def012345678}" Type="Text" Name="wsp_ucc_agent_teamsupn" DisplayName="Teams UPN" Required="FALSE" Group="AnywhereNow" />' $null "wsp_ucc_agent_teamsupn" "Agents"






	AddPnPFieldFromXml '<Field ID="{b4c8d9e0-2345-6789-abcd-ef0123456789}" Type="Text" Name="wsp_ucc_agent_teamsphone" DisplayName="TeamsAssignedPhoneNumber" Required="FALSE" Group="AnywhereNow" />' $null "wsp_ucc_agent_teamsphone" "Agents"






	






	# Add to content type






	AddPnPFieldsToContentType "Agent" @("wsp_ucc_agent_teamsupn", "wsp_ucc_agent_teamsphone") "Agents"






	






	# Update view to include new columns






	AddPnPView "Agents" "AllItems" "AllItems" 30 '<OrderBy><FieldRef Name="ID" Ascending="True"/></OrderBy>' @("wsp_ucc_Agent", "wsp_ucc_Order", "wsp_ucc_Formal", "CustomHours", "wsp_ucc_agent_aci", "wsp_ucc_agent_teamsupn", "wsp_ucc_agent_teamsphone") -Default -RemoveIfExists






}













function Execute8.3SiteUpdates






{






	SiteUpdate_8.3_01(8.3001)






	SetTemplateVersion $templateUpdateVersion






}






