Hi @azure-000
Thanks for the question and using MS Q&A platform.
To filter files that are modified within the last 12 hours, you can modify the existing filter expression to include the modified time condition. Here's an example of how you can modify the expression:
@and(contains(item().name, 'example'), greaterOrEquals(item().lastModified, addhours(utcnow(), -12)))
This expression uses the and
function to combine two conditions: the contains
function to filter files by name and the greaterOrEquals
function to filter files by modified time. The greaterOrEquals
function compares the lastModified
property of the file with the current time minus 12 hours (addhours(utcnow(), -12)
).
You can replace the existing filter expression with this modified expression in the Filter activity. This should filter out files that don't meet both conditions.
For more information on working with expression in ADF, please refer this doc.
Hope this helps. Do let us know if you any further queries.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.