web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow with multiple con...
Power Automate
Unanswered

Flow with multiple conditions

(0) ShareShare
ReportReport
Posted on by 4

Hello,

 

I'm trying to create a flow to copy data from one SharePoint list to another.

It needs to have three conditions:

First is if X<>0;

Second is Y = 1;

And third is, date of value must be only created in the last 24 hours. 

Is it possible to create a Condition with all the three "conditions"? I tried with 

@less(string(item()['Date']), adddays(utcnow(), 1))

 but in the second list duplicates all the records that I created earlier. 

 

Note: I saw some tutorials about sync two SharePoint lists but all of them works with Title and in my lists I don't work with that.

Thank You.

Categories:
I have the same question (0)
  • v-bacao-msft Profile Picture
    Microsoft Employee on at

    Hi @MVasc0ncelos,

     

    Could you provide more explanation about "X,Y"? Is this the name of the two column and what their types are.

    And what do you mean by the Date field that you mentioned, I hope you could provide more details about them.

    I did a test on my side and tried to combine the three conditions you mentioned to filter the items.

    Assuming X, Y are two single-line text type fields, and the configuration of the two lists is the same, you could copy the data in the following way.

    1. Set Recurrence as the trigger to trigger Flow at the specified time each day.

    2. Configure Get items action to get the items in listA, and configure Filter Query to get the eligible items. Determine if the value of the ‘Created’ field is less than utcNow() and greater than this time of the day.

    addDays(utcNow(),-1)

    3. Use Apply_to_each to traverse the items obtained, use Get items to get the existing items in ListB, you could consider using ID to determine whether listB contains the current item.

    Or use other fields that can identify unique items as the basis for judgment, according to your actual situation.

     items('Apply_to_each')['ID']

    4. Use Length() to check if the number of items obtained from Get items from B is equal to 0.

    @equals(length(body('Get_items_from_B')?['value']), 0)

    5. If so, create a new item in listB.

    items('Apply_to_each')['Title']
    
     items('Apply_to_each')['X']
    
     items('Apply_to_each')['Y']
    

    Image reference:

    4.PNG5.PNG6.PNG

    Please take a try.

     

    Best Regards,

    Barry

  • MVasc0ncelos Profile Picture
    4 on at

    Hello @v-bacao-msft

     

    Here is what I have:

    SharePoint List

     

    SharePoint list

    Column "Data" is the date/time

    "Transportador" is a lookup column and is like "X" from previous post. If is equal to "ABC" the flow stops;

    "Categoria" is a Choice option, is is diferent to "Cliente" the flow stops.

     

    Acording to your sugestion I tried this:

     

    Flow part1
    flow2
    flow3
    But it doens't pass any data to the second list.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 286

#2
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 225 Most Valuable Professional

Last 30 days Overall leaderboard