cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
MoniqueTrinidad
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
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
MoniqueTrinidad
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!

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
MoniqueTrinidad
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
Did you attend MBAS? Claim your badge

Attending MBAS? Claim your badge

Whether you’ve streamed the digital event live, or you're watching on-demand, claim your attendee badge to sport on your profile.

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (5,099)