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 / Parsing JSON to get em...
Power Automate
Answered

Parsing JSON to get email address from Azure DevOps ChangeBy field

(0) ShareShare
ReportReport
Posted on by 13

I am tryin got create a flow that will notify the person who change a work item that they did something wrong. I am trying to get the email address from the JSON output  "John Doe <john.doe@email.com>".  I only want the email, what's in between the <>.  I am not proficient enough in coding to know how to pull it out. Any suggestions? 

 

mvanwagoner_0-1680298869853.png

 

Categories:
I have the same question (0)
  • tom_riha Profile Picture
    10,187 Most Valuable Professional on at

    Hello @mvanwagoner ,

    you can extract it using the split(...) expression and picking the desired part of the split.

    split('John Doe <john.doe@email.com>', '<')[1] = john.doe@email.com>
    split('john.doe@email.com>', '>')[0] = john.doe@email.com
    
    if you put it together:
    split(split('John Doe <john.doe@email.com>', '<')[1], '>')[0] 

     

  • mvanwagoner Profile Picture
    13 on at

    I see you gave me the split expression - I am not sure where in my flow I would actually put that. Does it come after I do the "Parse JSON"? Do I need to create some kind of variable to grab it? Can you provide a visual of where in the Flow it would be put? 

     

    I tried to do a Compose with the Split expression as the input, but I was still getting a JSON parsing issue before it even got to the compose step

  • mvanwagoner Profile Picture
    13 on at

    I keep getting this error message "InvalidJSON. The 'content' property of actions of type 'ParseJson' must be valid JSON. The provided value cannot be parsed: 'Unexpected character encountered while parsing value: M. Path '', line 0, position 0.'."

  • Verified answer
    mvanwagoner Profile Picture
    13 on at

    I went about this  different way - FYI - I was trying to get the email address out of the ChangedBy field from an Azure DevOps work item to then use an @mention user token to send them a message. I wanted the email to be dynamic and not hard coded.  I thought using the Parse JSON was the initial way to go, but I managed the same result by Initializing a variable of the "ChangedBy" field and then composing using a slice function to pull just the email out. My flow looked like this

     

    mvanwagoner_0-1680478007836.png

     

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 605

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard