Hello Guys,
Please help
I have a list with StaffName (Person or Group) and a Status (Ongoing, Pending, Completed) Options
Each User has multiple entries into the list
i want to filter get items to pick a user in the StaffName column and also check that Status column is showing Ongoing.
I want the comparison of the StaffName to be the Email Such that i could have a filter
StaffName.Email (like in powerapps) eq 'StaffName DisplayName' and Status eq 'Ongoing'
Please help!!!
Solved! Go to Solution.
Hi @abieba ,
Please refer to screenshot below to create the flow:
The expression in the filter array as below:
@and(equals(item()?['StaffName']?['Email'], 'Test@xxxx.microsoft.com'),equals(item()?['Status']?['Value'], 'Ongoing'))
Best regards,
Alice
Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @abieba ,
Please refer to screenshot below to create the flow:
The expression in the filter array as below:
@and(equals(item()?['StaffName']?['Email'], 'Test@xxxx.microsoft.com'),equals(item()?['Status']?['Value'], 'Ongoing'))
Best regards,
Alice
Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @v-alzhan-msft ,
Thank You for your response.
I have tried this but its returning null and i have a Staff Name Email and Line Manager Email that should match and an approval status showing 'Ongoing'.
@and(equals(item()?['StaffName']?['Email'], triggerBody()?['LineManager']?['Email']), equals(item()?['Status']?['Value'], 'Ongoing'))
Regards,
Anthony.
Hi @abieba ,
Could you please share a screenshot of the configuration of your flow?
Could you please explain more details about the expression in the screenshot below:
Best regards,
Alice
Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
i want to do a filter with two conditions.
GetItems(StaffName.Email) = WhenItemisCreated (LineManager.Email)
and
if the email are same it should do a check for GetItems(LeaveStatus) = Ongoing of the ones that are same.
While the solution suggested by @v-alzhan-msft will work, I would like to suggest an alternate approach.
See my screen shot below where I use an OData filter to filter the items before they are returned by Get items - no need to filter the array, etc. Just loop through all items returned and take action as appropriate.
Hi @abieba ,
Your flow is correct except that the Condition inside the Apply to each is not needed.
Please delete the Condition inside the Apply to each.
Best regards,
Alice
Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!
Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.
User | Count |
---|---|
32 | |
16 | |
15 | |
13 | |
7 |
User | Count |
---|---|
39 | |
20 | |
14 | |
10 | |
8 |