web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Extract data from an O...
Power Automate
Unanswered

Extract data from an ODATA string

(1) ShareShare
ReportReport
Posted on by 4
 
 
Hi All:
 
New to Power automate.
 
I've built a flow that queries MSGRAPH for some AD User Data. I have a select filter to limit the current MSGRAPH query to the data element i need.
 
What I cannot figure out is how to get the one value I need out of the results. 
 
Here's the output I have:
 
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#users(employeeId)/$entity",
"employeeId": "21884",
"id": "3917a411-04b5-48c9-ae8f-0c81c728bebf"
}
 
I need to be able to parse this ODATA result (output) to get 21884, the employeeID.
 
This output comes from an HTTP call to MSGRAPH to query a single ad user to return the EmployeeID. 
 
So what I need to do in the next step of the flow is to take that OUTPUT and get the VALUE 21884.
 
Is there a function to sort of 'split' the odata output into a key/value pair? If not, it would seem then that I will need to use a function to SPLIT the string manually by a comma and then split the second value ("employeeId:21884") to get at the value I need, which is 21884.
 
Really hoping for a tip on how to extract. Just completely new to ODATA and beginner with Power Automate.  Thank you in advance.
Categories:
I have the same question (0)
  • Verified answer
    trice602 Profile Picture
    15,402 Super User 2025 Season 2 on at
    Hi,
     
    You can write a quick compose and use the following expression:
     
    body('YourActionName')?['employeeId']
     

    ------------------------------------------------

     

     

    ⭐ If this was helpful, please like and mark as a verified answer to help others find this too!

     

     

    Always glad to help! 💯💯💯💯💯

     

    Tom

     

    Follow me on LinkedIn - Thomas Rice, PMP | LinkedIn

  • Verified answer
    RB-30012053-0 Profile Picture
    4 on at
     
    Just wanted to say thanks. That worked perfectly!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard