I'm trying to list all the files in a specific folder on a SharePoint site that have value in a column called "FakeModified" that is less than 2025-01-01. I am using the Lookup activity in Azure Data Factory with a SharePointOnlineListResource as the Source dataset. I have also confirmed that the data set can see all the columns I'm looking for. I'm using this query:
FakeModified lt '2025-01-01' AND FakeModified ne null AND startswith(Path,'/sites/TestSite/Shared Documents/Test')
Which outputs:
{
"count": 15,
"value": [
{
"ContentTypeID": "0x012000B16D1283924E8449B2AF8F3E4229EAC7",
"Name": "Immutable",
"ColorTag": null,
"ComplianceAssetId": null,
"Title": null,
"Description": null,
"FakeModified": null,
"Id": 78,
"ContentType": "Folder",
"Created": "2025-06-05T13:50:20Z",
"CreatedById": 7,
"Modified": "2025-06-05T13:50:20Z",
"ModifiedById": 7,
"CopySource": null,
"ApprovalStatus": "0",
"Path": "/sites/TestSite/Shared Documents",
"CheckedOutToId": null,
"VirusStatus": "",
"IsCurrentVersion": true,
"Owshiddenversion": 1,
"Version": "1.0"
},
{
"ContentTypeID": "0x012000B16D1283924E8449B2AF8F3E4229EAC7",
"Name": "Test",
"ColorTag": null,
"ComplianceAssetId": null,
"Title": null,
"Description": null,
"FakeModified": null,
"Id": 79,
"ContentType": "Folder",
"Created": "2025-06-05T14:02:13Z",
"CreatedById": 7,
"Modified": "2025-06-05T14:02:13Z",
"ModifiedById": 7,
"CopySource": null,
"ApprovalStatus": "0",
"Path": "/sites/TestSite/Shared Documents",
"CheckedOutToId": null,
"VirusStatus": "",
"IsCurrentVersion": true,
"Owshiddenversion": 1,
"Version": "1.0"
},
{
"ContentTypeID": "0x0101004A3BB6D5723B3A4596688708311F18E5",
"Name": "Document.docx",
"ColorTag": null,
"ComplianceAssetId": null,
"Title": null,
"Description": null,
"FakeModified": null,
"Id": 141,
"ContentType": "Document",
"Created": "2025-06-11T15:50:01Z",
"CreatedById": 7,
"Modified": "2025-06-11T15:50:04Z",
"ModifiedById": 7,
"CopySource": null,
"ApprovalStatus": "0",
"Path": "/sites/TestSite/Shared Documents/Immutable",
"CheckedOutToId": null,
"VirusStatus": "18490",
"IsCurrentVersion": true,
"Owshiddenversion": 2,
"Version": "1.0"
},
{
"ContentTypeID": "0x0101004A3BB6D5723B3A4596688708311F18E5",
"Name": "ArchivedFileNotice.txt",
"ColorTag": null,
"ComplianceAssetId": null,
"Title": null,
"Description": null,
"FakeModified": "2025-03-03",
"Id": 167,
"ContentType": "Document",
"Created": "2025-06-12T07:59:03Z",
"CreatedById": 7,
"Modified": "2025-06-12T07:59:03Z",
"ModifiedById": 7,
"CopySource": null,
"ApprovalStatus": "0",
"Path": "/sites/TestSite/Shared Documents/Immutable",
"CheckedOutToId": null,
"VirusStatus": "119",
"IsCurrentVersion": true,
"Owshiddenversion": 1,
"Version": "1.0"
},
{
"ContentTypeID": "0x0101004A3BB6D5723B3A4596688708311F18E5",
"Name": "Document.docx",
"ColorTag": null,
"ComplianceAssetId": null,
"Title": null,
"Description": null,
"FakeModified": "2025-03-03",
"Id": 199,
"ContentType": "Document",
"Created": "2025-06-24T14:46:14Z",
"CreatedById": 7,
"Modified": "2025-06-24T14:46:15Z",
"ModifiedById": 7,
"CopySource": null,
"ApprovalStatus": "0",
"Path": "/sites/TestSite/Shared Documents/Test",
"CheckedOutToId": null,
"VirusStatus": "18504",
"IsCurrentVersion": true,
"Owshiddenversion": 2,
"Version": "1.0"
},
{
"ContentTypeID": "0x0101004A3BB6D5723B3A4596688708311F18E5",
"Name": "Document1.docx",
"ColorTag": null,
"ComplianceAssetId": null,
"Title": null,
"Description": null,
"FakeModified": "2020-01-01",
"Id": 200,
"ContentType": "Document",
"Created": "2025-06-25T08:41:09Z",
"CreatedById": 7,
"Modified": "2025-06-25T08:41:59Z",
"ModifiedById": 7,
"CopySource": null,
"ApprovalStatus": "0",
"Path": "/sites/TestSite/Shared Documents/Test",
"CheckedOutToId": null,
"VirusStatus": "18507",
"IsCurrentVersion": true,
"Owshiddenversion": 4,
"Version": "3.0"
},
{
"ContentTypeID": "0x0101004A3BB6D5723B3A4596688708311F18E5",
"Name": "Document2.docx",
"ColorTag": null,
"ComplianceAssetId": null,
"Title": null,
"Description": null,
"FakeModified": "2020-03-20",
"Id": 201,
"ContentType": "Document",
"Created": "2025-06-25T08:41:15Z",
"CreatedById": 7,
"Modified": "2025-06-25T08:42:17Z",
"ModifiedById": 7,
"CopySource": null,
"ApprovalStatus": "0",
"Path": "/sites/TestSite/Shared Documents/Test",
"CheckedOutToId": null,
"VirusStatus": "18498",
"IsCurrentVersion": true,
"Owshiddenversion": 3,
"Version": "2.0"
},
{
"ContentTypeID": "0x0101004A3BB6D5723B3A4596688708311F18E5",
"Name": "Document3.docx",
"ColorTag": null,
"ComplianceAssetId": null,
"Title": null,
"Description": null,
"FakeModified": "2025-03-03",
"Id": 202,
"ContentType": "Document",
"Created": "2025-06-25T08:41:21Z",
"CreatedById": 7,
"Modified": "2025-06-25T08:41:23Z",
"ModifiedById": 7,
"CopySource": null,
"ApprovalStatus": "0",
"Path": "/sites/TestSite/Shared Documents/Test",
"CheckedOutToId": null,
"VirusStatus": "18505",
"IsCurrentVersion": true,
"Owshiddenversion": 2,
"Version": "1.0"
},
{
"ContentTypeID": "0x0101004A3BB6D5723B3A4596688708311F18E5",
"Name": "Document4.docx",
"ColorTag": null,
"ComplianceAssetId": null,
"Title": null,
"Description": null,
"FakeModified": "2020-02-15",
"Id": 203,
"ContentType": "Document",
"Created": "2025-06-25T08:41:25Z",
"CreatedById": 7,
"Modified": "2025-06-25T08:42:44Z",
"ModifiedById": 7,
"CopySource": null,
"ApprovalStatus": "0",
"Path": "/sites/TestSite/Shared Documents/Test",
"CheckedOutToId": null,
"VirusStatus": "18501",
"IsCurrentVersion": true,
"Owshiddenversion": 4,
"Version": "3.0"
},
{
"ContentTypeID": "0x012000B16D1283924E8449B2AF8F3E4229EAC7",
"Name": "SubDir",
"ColorTag": null,
"ComplianceAssetId": null,
"Title": null,
"Description": null,
"FakeModified": null,
"Id": 204,
"ContentType": "Folder",
"Created": "2025-06-25T09:02:14Z",
"CreatedById": 7,
"Modified": "2025-06-25T09:02:14Z",
"ModifiedById": 7,
"CopySource": null,
"ApprovalStatus": "0",
"Path": "/sites/TestSite/Shared Documents/Test",
"CheckedOutToId": null,
"VirusStatus": "",
"IsCurrentVersion": true,
"Owshiddenversion": 1,
"Version": "1.0"
},
{
"ContentTypeID": "0x0101004A3BB6D5723B3A4596688708311F18E5",
"Name": "Document1.docx",
"ColorTag": null,
"ComplianceAssetId": null,
"Title": null,
"Description": null,
"FakeModified": "2020-01-01",
"Id": 205,
"ContentType": "Document",
"Created": "2025-06-25T09:02:27Z",
"CreatedById": 7,
"Modified": "2025-06-25T09:02:27Z",
"ModifiedById": 7,
"CopySource": null,
"ApprovalStatus": "0",
"Path": "/sites/TestSite/Shared Documents/Test/SubDir",
"CheckedOutToId": null,
"VirusStatus": "18507",
"IsCurrentVersion": true,
"Owshiddenversion": 0,
"Version": "1.0"
},
{
"ContentTypeID": "0x0101004A3BB6D5723B3A4596688708311F18E5",
"Name": "Document.docx",
"ColorTag": null,
"ComplianceAssetId": null,
"Title": null,
"Description": null,
"FakeModified": "2025-03-03",
"Id": 206,
"ContentType": "Document",
"Created": "2025-06-25T09:02:27Z",
"CreatedById": 7,
"Modified": "2025-06-25T09:02:27Z",
"ModifiedById": 7,
"CopySource": null,
"ApprovalStatus": "0",
"Path": "/sites/TestSite/Shared Documents/Test/SubDir",
"CheckedOutToId": null,
"VirusStatus": "18504",
"IsCurrentVersion": true,
"Owshiddenversion": 0,
"Version": "1.0"
},
{
"ContentTypeID": "0x0101004A3BB6D5723B3A4596688708311F18E5",
"Name": "Document2.docx",
"ColorTag": null,
"ComplianceAssetId": null,
"Title": null,
"Description": null,
"FakeModified": "2020-03-20",
"Id": 207,
"ContentType": "Document",
"Created": "2025-06-25T09:02:27Z",
"CreatedById": 7,
"Modified": "2025-06-25T09:02:27Z",
"ModifiedById": 7,
"CopySource": null,
"ApprovalStatus": "0",
"Path": "/sites/TestSite/Shared Documents/Test/SubDir",
"CheckedOutToId": null,
"VirusStatus": "18498",
"IsCurrentVersion": true,
"Owshiddenversion": 0,
"Version": "1.0"
},
{
"ContentTypeID": "0x0101004A3BB6D5723B3A4596688708311F18E5",
"Name": "Document3.docx",
"ColorTag": null,
"ComplianceAssetId": null,
"Title": null,
"Description": null,
"FakeModified": "2025-03-03",
"Id": 208,
"ContentType": "Document",
"Created": "2025-06-25T09:02:27Z",
"CreatedById": 7,
"Modified": "2025-06-25T09:02:27Z",
"ModifiedById": 7,
"CopySource": null,
"ApprovalStatus": "0",
"Path": "/sites/TestSite/Shared Documents/Test/SubDir",
"CheckedOutToId": null,
"VirusStatus": "18505",
"IsCurrentVersion": true,
"Owshiddenversion": 0,
"Version": "1.0"
},
{
"ContentTypeID": "0x0101004A3BB6D5723B3A4596688708311F18E5",
"Name": "Document4.docx",
"ColorTag": null,
"ComplianceAssetId": null,
"Title": null,
"Description": null,
"FakeModified": "2020-02-15",
"Id": 209,
"ContentType": "Document",
"Created": "2025-06-25T09:02:27Z",
"CreatedById": 7,
"Modified": "2025-06-25T09:02:27Z",
"ModifiedById": 7,
"CopySource": null,
"ApprovalStatus": "0",
"Path": "/sites/TestSite/Shared Documents/Test/SubDir",
"CheckedOutToId": null,
"VirusStatus": "18501",
"IsCurrentVersion": true,
"Owshiddenversion": 0,
"Version": "1.0"
}
],
"effectiveIntegrationRuntime": "AutoResolveIntegrationRuntime (East US 2)",
"billingReference": {
"activityType": "PipelineActivity",
"billableDuration": [
{
"meterType": "AzureIR",
"duration": 0.016666666666666666,
"unit": "Hours"
}
],
"totalBillableDuration": [
{
"meterType": "AzureIR",
"duration": 0.016666666666666666,
"unit": "Hours"
}
]
},
"durationInQueue": {
"integrationRuntimeQueue": 0
}
}