$now = (Get-Date).AddDays(-1);
$lastrun_converted = [microsoft.sharepoint.utilities.sputility]::CreateISO8601DateTimeFromSystemDateTime($now);
write-host $lastrun_converted;
$camlsource = "<Where><Geq><FieldRef Name='Modified'/><Value Type='DateTime' IncludeTimeValue='True'>$lastrun_converted</Value></Geq></Where>"
#$query=new-object Microsoft.SharePoint.SPQuery
$queryfromsource=new-object Microsoft.SharePoint.SPQuery
#$query.ViewAttributes = "Scope=`"Recursive`""
$queryfromsource.ViewAttributes = "Scope=`"Recursive`""
$queryfromsource.Query=$camlsource
Blogs about sharepoint ,Sharepoint Designer,Infopath and powershell
Subscribe to:
Post Comments (Atom)
SPFX - HTTPClient - Curd Operations - SharePoint list.
Create solution in the name of SpfxCrud. ISpfxCrudProps.ts export interface ISpfxCrudProps { description : string ; context : an...
-
$now = (Get-Date).AddDays(-1); $lastrun_converted = [microsoft.sharepoint.utilities.sputility]::CreateISO8601DateTimeFromSystemDateTime($...
-
<# The below PowerShell script enumerates through all sites with unique permissions and fetches users with Full Control Permission gran...
-
<Sharepoint:SPSecurityTrimmedControl runat="server" Permissions="ManageLists"> add the above code beofre ribbo...
Outstanding! That solved my date comparison problem. Thank you!
ReplyDelete