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 / Getting e-mail address...
Power Automate
Unanswered

Getting e-mail address from Sharepoint list and use in intialize variable

(0) ShareShare
ReportReport
Posted on by

Hi,

 

I have a flow that creates some tasks in Planner and assign it to different users (specifies e-mail).

The user's responsible is on another Sharepoint list specified in a column called "Responsible", which is a Person-type column.

 

Can I use flow to get the e-mail address from the person in the Sharepoint list and use it to assign this person in several tasks in Planner?

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Anonymous,

     

    You should be able to retrieve the Responsible/Email property of the list item.

     

    Below is an example of that. In this example I am using a list called PlannerPeople. Via a get items action I am retrieving all the items. 

     

    plannerpeople.png

     

    In the initialize variable action I am using an expression to retrieve the first record (in this case Jane).

    outputs('Get_items')?['body/value'][0]['Responsible/Email']

     

    firstitem_people.png

  • Community Power Platform Member Profile Picture
    on at

    Hi! Thank you for your reply.

     

    I tried this but received the following error message:

    Unable to process template language expressions in action 'Ansattes_representant' inputs at line '1' and column '32514': 'The template language expression 'outputs('Get_items')?['body/value'][0]['AnsvarligNMAS/Email']' cannot be evaluated because property 'AnsvarligNMAS/Email' doesn't exist, available properties are '@odata.etag, ItemInternalId, ID, Title, AnsvarligNMAS, AnsvarligNMAS@odata.type, AnsvarligNMAS#Claims, AnsvarligNMAS#Claims@odata.type, Firma, Telefon, Modified, Created, Author, Author#Claims, Editor, Editor#Claims, {Identifier}, {IsFolder}, {Thumbnail}, {Link}, {Name}, {FilenameWithExtension}, {Path}, {FullPath}, {HasAttachments}, {VersionNumber}'. Please see https://aka.ms/logicexpressions for usage details.'.

     

    ppedersen85_0-1621929363688.png

     

     

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Anonymous,

     

    Can you share a screenshot of the setup of your Get Items action? I am also interested to see the raw output of that Get Items action of that failing flow run. Can you also share that?

  • Community Power Platform Member Profile Picture
    on at

    I might have to use a filter like "Tjeneste eq Ansattes representant" to find the right row that show the correct "role" in the column "Tjeneste".

     

    ppedersen85_0-1621943830846.png

     


    Here's the output:

    {"@odata.etag":"\"1\"","ItemInternalId":"49","ID":49,"Title":"Ansattes representant","AnsvarligNMAS":[{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser","Claims":"i:0#.f|membership|morten.sandell@nmas.no","DisplayName":"Morten Sandell","Email":"morten.sandell@nmas.no","Picture":"https://nmasno.sharepoint.com/sites/intranett/_layouts/15/UserPhoto.aspx?Size=L&AccountName=morten.sandell@nmas.no","Department":"Salg","JobTitle":"Produktsjef / Product Manager"}],"AnsvarligNMAS@odata.type":"#Collection(Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser)","AnsvarligNMAS#Claims":["i:0#.f|membership|morten.sandell@nmas.no"],"AnsvarligNMAS#Claims@odata.type":"#Collection(String)","Modified":"2021-05-20T10:40:15Z","Created":"2021-05-20T10:40:15Z","Author":{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser","Claims":"i:0#.f|membership|patrick.pedersen@nmas.no","DisplayName":"Patrick Pedersen","Email":"Patrick.Pedersen@nmas.no","Picture":"https://nmasno.sharepoint.com/sites/intranett/_layouts/15/UserPhoto.aspx?Size=L&AccountName=Patrick.Pedersen@nmas.no","Department":"Salg","JobTitle":"Applikasjonsspesialist / Application Specialist"},"Author#Claims":"i:0#.f|membership|patrick.pedersen@nmas.no","Editor":{"@odata.type":"#Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser","Claims":"i:0#.f|membership|patrick.pedersen@nmas.no","DisplayName":"Patrick Pedersen","Email":"Patrick.Pedersen@nmas.no","Picture":"https://nmasno.sharepoint.com/sites/intranett/_layouts/15/UserPhoto.aspx?Size=L&AccountName=Patrick.Pedersen@nmas.no","Department":"Salg","JobTitle":"Applikasjonsspesialist / Application Specialist"},"Editor#Claims":"i:0#.f|membership|patrick.pedersen@nmas.no","{Identifier}":"Lists%252fKontakter%2bog%2btjenester%2binternt%252f49_.000","{IsFolder}":false,"{Thumbnail}":{"Large":null,"Medium":null,"Small":null},"{Link}":"https://nmasno.sharepoint.com/sites/intranett/_layouts/15/listform.aspx?PageType=4&ListId=a096a8fa%2D088c%2D4e56%2D9c5c%2Db4c63a378e28&ID=49&ContentTypeID=0x0100F781B92FCAE8F04DB9A81EFF47429C36","{Name}":"Ansattes representant","{FilenameWithExtension}":"Ansattes representant","{Path}":"Lists/Kontakter og tjenester internt/","{FullPath}":"Lists/Kontakter og tjenester internt/49_.000","{HasAttachments}":false,"{VersionNumber}":"1.0"}]}}

     

    I'm trying to get that value Email:morten.sandell@nmas.no

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