User Profile
vaibhavkaulkar
Copper Contributor
Joined Sep 09, 2020
User Widgets
Recent Discussions
Read image from sharepoint list in spfx rest api
I am trying to read image column in spfx using rest and nojS. THe site modern. I am unable to get the exact url. There are other properties like server relative url is returned. However is it possible to get the image and then it can be bound to image control?1.7KViews0likes0CommentsHelp....TAsk scheduler asking for credentials
Hi I have written a ps script to set retention policy for SP sites. Wheras the script works, I need to make it non interactive. Any help will be highly appreciated... ---------- Start-Transcript #install-module if does not exist Import-Module Microsoft.Online.SharePoint.Powershell -DisableNameChecking Import-Module ExchangeOnlineManagement #Variables for processing $AdminCenterURL = "https://stgtenant-admin.sharepoint.com/" #User Name Password to connect $AdminUserName = "@stgtenant.onmicrosoft.com" $AdminPassword = "" #App Password #create temp folder if it does not exist $ReportOutput="C:\Temp\pvtSiteColl.csv" Connect-IPPSSession -UserPrincipalName $AdminUserName #Prepare the Credentials $SecurePassword = ConvertTo-SecureString $AdminPassword -AsPlainText -Force $Cred = new-object -typename System.Management.Automation.PSCredential -argumentlist $AdminUserName, $SecurePassword #Connect to SharePoint Online Connect-SPOService -url $AdminCenterURL #Get All site collections $SiteCollections = Get-SPOSite -Limit All| Where { $_.Template -eq "TEAMCHANNEL#0"} Write-Host "Total Number of Private Site collections Found:"$SiteCollections.count -f Yellow #Array to store Result $ResultSet = @() #Loop through each site collection and retrieve details Foreach ($Site in $SiteCollections) { Write-Host "Processing Site Collection :"$Site.URL -f Yellow #Get site collection details $Result = new-object PSObject $Result | add-member -membertype NoteProperty -name "Title" -Value $Site.Title $Result | add-member -membertype NoteProperty -name "Url" -Value $Site.Url $Result | add-member -membertype NoteProperty -name "Template" -Value $Site.Template Set-RetentionCompliancePolicy -Identity "testFilesRetention" -AddSharePointLocation $Site.Url $ResultSet += $Result } #Export Result to csv file $ResultSet | Export-Csv $ReportOutput -notypeinformation Write-Host "private site Report Generated Successfully!" -f Green Stop-Transcript2.8KViews0likes4Comments
Recent Blog Articles
No content to show