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 / Pull Email address fro...
Power Automate
Unanswered

Pull Email address from VSTS "Assigned To"

(0) ShareShare
ReportReport
Posted on by

I am creating a flow that notifies users if their assigned VSTS work item has not been touched for more than 7 days.

 

I have created a flow action that pulls a VSTS query result for work items not touched in 7 days.

 

I want to send an email to the person that the work item is assigned to. The output of 'Assigned To' is in this format: FirstName LastName <email@microsoft.com>. The Send an email action does not understand this as an input. How can I take the "Assigned To variable and only return the email address?

 

Here is the flow:

Capture.PNG

 

 

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    on at

    Hi @LeviC,

     

    Do you want to get the email address from the output of Assigned to in format “FirstName LastName <email@microsoft.com> “?

     

    Please try the following flow configuration.

     

    In my testing flow, it is triggered by a button.

     

    Add a Compose action, get the start position of the actual email address:

    add(indexOf(triggerBody()['text'],'<'),1)

     

    Add a Compose2 action, get the last position of the actual email address:

    add(indexOf(triggerBody()['text'],'.com'),4)

     

    Add a Compose3 action, get the actual email address:

    substring(triggerBody()['text'],outputs('Compose'),sub(outputs('Compose_2'),outputs('Compose')))

     

    I have made a test on my side and it works fine.

    1.PNG2.PNG

    Please try it on your side.

     

    Best regards,

    Mabel Mao

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