cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

SharePoint Get items filter query

Hi, any help would be higly appreciated.

 

I have been trying to create a Time Off request approval flow.

I have two 2 sharepoint lists namely:

SPlist1. Leave Request (where all requests are created)

SPList2. Leave Credit (where employee name and leave credits are listed)

 

When an item is created in SP1, 

I wanted to retrieve the leave credit of the requestor looking up to SPL2 (Employee Name column)

 

The value that I will get will be included in the approval email.

 

Capture.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: SharePoint Get items filter query

Hi MoniqueTrinidad,

 

According to your description, I created a flow likes below. When an item created in List4, get items in List3, if the title in List3 is equal to List4, send an approval email.


In the Body field of Send approval email action, I select the dynamic content number from Get items action.

3.PNG

 

Please try if it will work for your scenario and feel free reply if you need more help.

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Frequent Visitor

Re: SharePoint Get items filter query

Tried doing a work around.

I created a lookup column in SPL1, where it "lookup" SPL2 ID.

Created a workflow in SP Designer that will set this lookup column to the Employee Name ID in SPL2.

Resulting now that every created item in SPL1, Lookup column will EQUAL ID (from SPL2) of the matching requestor and employee.

 

Now, i have this. Do until the workflow i created is finished and get specific item

 

Capture3.PNG

 

HOWEVER, have checked the flow details and the Get Items step seem to return all items from the SPL2.

 

Please help!

Highlighted
Community Support
Community Support

Re: SharePoint Get items filter query

Hi MoniqueTrinidad,

 

According to your description, I created a flow likes below. When an item created in List4, get items in List3, if the title in List3 is equal to List4, send an approval email.


In the Body field of Send approval email action, I select the dynamic content number from Get items action.

3.PNG

 

Please try if it will work for your scenario and feel free reply if you need more help.

 

Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Frequent Visitor

Re: SharePoint Get items filter query

Thank you so much Mabel Mao! It is exactly what I've been trying to achieve

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (8,048)