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 / Looking for a way to l...
Power Automate
Answered

Looking for a way to look up by key & value pair using Power Automate

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Experts,

I am making a flow to create an issue in Azure DevOps when an email is received.

I have below action to get Office Location by sender email, and from Office Location, i will assign the work item to a team member.

jeffpham_9_0-1690791351254.png

i am having a SPO list with key & value pairs like this

Office LocationTeam member
Office 1member1@xyz.com
Office 2member2@xyz.com

and an action Get items with Filter Query to get the items with Office Location 

jeffpham_9_1-1690791600253.png

When i put email field from Get Items to Assigned To field of work item, it did not run as expected

jeffpham_9_2-1690791679335.png

this is a result

jeffpham_9_3-1690791846602.png

Does anyone know how to do this in the most dynamic way? i'm thinking of Switch Statement but it does not easy to maintain & not the best way in my opinion.

 

Thank you in advance ! 

 

full flow.png
Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,830 Most Valuable Professional on at

    Hi @Anonymous,

     

    Did the Get Items actually return any items? The apply to each skipped the Create a work item action, which suggests your value property is empty ( aka [] ).

     

    Can you double check the Get Items outputs section?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you for pointing out this for me 😅 i just realize there was an external email sent to my account during the testing phrase. 

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 608

#2
Valantis Profile Picture

Valantis 416

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard