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

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,185 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

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard