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

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

Author: Saulo Soares Oliveira

Share This Post On
468 ad

Leave a Reply