SharePoint Online Developer – Aula 13 – Bug to Deploy webpart SPFx – YouTube

Saulo Soares OliveiraYouTube5 years ago12 Views

Nesse vídeo vamos aprender a fazer deploy da nossa webpart criada no SharePoint Framework (SPFx) no SharePoint Online.

Ocorre um bug para quem usa versão inferior a 1.4. No vídeo aula 14 você aprender como superar essa dificuldade.

E ai… #BoraAprenderSharePoint ? ?

Visite nosso blog https://sharepointacademy.wordpress.com/

Referência do bug que comentei no vídeo:
https://github.com/sharepoint/sp-dev-docs/issues/775

O script demonstrado para apagar os itens da lixeira pelo power shell:

#Load SharePoint Online Assemblies
Add-Type -Path “C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions16ISAPIMicrosoft.SharePoint.Client.dll”
Add-Type -Path “C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions16ISAPIMicrosoft.SharePoint.Client.Runtime.dll”

##Variables for Processing
$SiteUrl = “https://seusite.sharepoint.com/sites/desenvolvedor/”
$UserName=”seuusuario@seusite.onmicrosoft.com”

#Get the password to connect
$Password = Read-host -assecurestring “Enter Password for $UserName”
$Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($UserName,$Password)

Try {
#Setup the context
$Context = New-Object Microsoft.SharePoint.Client.ClientContext($SiteUrl)
$Context.Credentials = $Credentials

#Get the recycle bin
$Site = $Context.Site
$RecycleBinItems = $Site.RecycleBin
$Context.Load($Site)
$Context.Load($RecycleBinItems)
$Context.ExecuteQuery()

Write-Host "Total Number of Items found Recycle Bin:" $RecycleBinItems.Count
$RecycleBinItems.DeleteAll()
$Context.ExecuteQuery()

}
catch {
write-host “Error: $($_.Exception.Message)” -foregroundcolor Red
}

source

Leave a reply

Join Us
  • X Network2.1K
  • LinkedIn3.8k
  • Bluesky0.5K
Support The Site
Events
February 2025
MTWTFSS
      1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28   
« Jan   Mar »
Follow
Sign In/Sign Up Sidebar Search
Popular Now
Loading

Signing-in 3 seconds...

Signing-up 3 seconds...