Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Retrieve SPECIFIC item from SharePoint list

(0) ShareShare
ReportReport
Posted on by

I have two SharePoint lists. In each one the Title field has been renamed to "Employee Number".  

  1. PPE Requests - where an employee submits a reimbursement request. Employees will likely submit multiple requests until they reach their reimbursement limit.
  2. PPE Inventory - where we track the available balance in $$ for each employee. The Employee Number field requires unique values to ensure there is a single line item for each employee. NO DUPLICATES. 

When an employee submits a new Request, I want my flow to find the Employee Number in Inventory and return the value of the Available Balance that I can set as a variable. Later in the flow, I'll need to use that variable to see if they have enough funds for the reimbursement, calculate the NEW available balance, etc. 

 

I found a blog post that has a very similar example and I'm 90% there, but that last 10% is killing me. 

 

1. I've used "Get Items"  with a Top Count of 1 (just in case) to return the Inventory list items. This is for a small-ish department, so I'm not super concerned with scalability. I'll be surprised if this list reaches triple digits.

FlowAvailableBalance 1.png

 

2. I've added a Filter Array to isolate the ONE record for that employee number.

FlowAvailableBalance2.png

 

But I'm stumped at returning the value of the "Available Balance" field. I initialized the variable following the post which should have returned the number/currency value of the Available Balance:

json(string(first(body('Filter_array'))))?['Available_Balance']
 
Every test of the flow works fine, no errors. But the value is blank.
FlowAvailableBalance3.png
I'll be honest, I have no idea what that expression means or does. I just typed it. But I do know enough to know that my number is an integer, not a string. I tried changing the type to Integer and updating the expression to
json(int(first(body('Filter_array'))))?['Available_Balance']
 
But then the step failed and I got big red "INVALID" errors. So no dice there.
 
Please help. This method is the closest I've gotten after several hours of trying, but I am NOT tied to it. So if anyone has a better solution, I'm all ears.
 
Thanks.

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492