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 Automate
Unanswered

Help with Expression

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

 

Hello, I need help with Expression

 

The Expression to get Job ID is   @{triggerBody()?['payload']?['job']?['id']}

 

  • What is the Expression to get Department Name ?
  • What is the Expression to get Office Names ( Eg: New York, Belgium ) ( both office name , comma separated )

Below is the Sample JSON  Code

 

 

{
 "action": "job_updated",
 "payload": 
 {
 "job": 
 {
 "id": 100445,
 "name": "Assistant Store Manager, NYC",
 "requisition_id": null,
 "notes": "<p>Looking for the best!<\/p>",
 "confidential": false,
 "job_post_id": 88010,
 "status": "open",
 "created_at": "2015-08-11T23:02:09Z",
 "opened_at": "2015-08-11T23:02:09Z",
 "closed_at": null,
 "departments": 
 [
 {
 "id": 74,
 "name": "Guideshops",
 "external_id": "ex-dept-1"
 }
 ],
 "offices": 
 [
 {
 "id": 104,
 "name": "New York",
 "location": "New York, NY",
 "external_id": "ex-office-1"
 },
 {
 "id": 105,
 "name": "Belgium",
 "location": "Belgium",
 "external_id": "ex-office-2"
 }
 ],
 "hiring_team": 
 {
 "hiring_managers": 
 [
 {
 "user_id": 1234,
 "employee_id": "abc-123"
 }
 ],
 "sourcers": [],
 "recruiters": 
 [
 {
 "user_id": 2345,
 "employee_id": null
 },
 {
 "user_id": 3456,
 "employee_id": "abc-234"
 }
 ],
 "coordinators": []
 },
 "openings": 
 [
 {
 "id": 1234,
 "opening_id": "abc-1",
 "custom_fields": []
 },
 {
 "id": 1235,
 "opening_id": "abc-2",
 "custom_fields": []
 }
 ],
 "custom_fields": 
 {
 "bonus": 
 {
 "name": "Bonus",
 "type": "short_text",
 "value": null
 },
 "employment_type": 
 {
 "name": "Employment Type",
 "type": "single_select",
 "value": null
 },
 "options":
 {
 "name": "Options",
 "type": "short_text",
 "value": null
 },
 "salary": 
 {
 "name": "Salary",
 "type": "short_text",
 "value": null
 }
 }
 }
 }
}

 

 

 

 

Categories:
  • abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi @Anonymous 

     

    Add a Parse JSON action step. Pass the value under the content. Click the Generate Sample. Copy and Paste the above sample data. 

     

    Next step add a compose and extract the values.

     

    Thanks

  • abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Here it is

     

    image.png

    image.png

     

    You may need to add another Parse JSON step to extract further values. Try the above and run the flow. If you have further JSON to extract do the same steps again.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 271

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard