0

I am using filter array method to get list of blobs which are added within last 5 minutes (Last modified is less than 5 min) and if blob display name contains specific test(word Test in my case).

My logic: enter image description here

I am using below condition for filtering array

@and(less(item()?['LastModified'], addMinutes(utcNow(), -5)), contains(item()?['DisplayName'], 'Test'))

But contains(item()?['DisplayName'], 'Test') only working, last modified is getting ignored.

How can I resolve this issue ?

2 Answers 2

1

blobs which are added within last 5 minutes

Change less(item()?['LastModified'], addMinutes(utcNow(), -5)) to greater(item()?['LastModified'], addMinutes(utcNow(), -5)).

Sign up to request clarification or add additional context in comments.

Comments

0

Here is my condition this will be helping you. List of users who belongs to US country and department belin

@equals(and(equals(item()?['Country_Code'], 'US'), or(equals(item()?['Department'], 'Dept1'), equals(item()?['Department'], 'Dept2'))), true)

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.