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 / convert email address ...
Power Automate
Answered

convert email address to a sharepoint person

(0) ShareShare
ReportReport
Posted on by 75

Hi there.

I Built an approval flow on a sharepoint library. the first step of the flow is the "For a selected File" where I get the approvers emails.

I want to save them back into one column of the Library "ApprovedBy". This column is a "person or group" type of column. 

How can I convert the emails I got from the input into one or more person ? The solution below retruns an empty table. []

screen1.jpgscreen2.jpg

Categories:
  • jinivthakkar Profile Picture
    4,187 on at

    @fsim 

     

    first I split the email address input from semicolon split(triggerBody()['email'],';')

     

    jinivthakkar_0-1614877541771.png

     

     

    Click +Add new item and then pass the values:


    outputs('Compose')[0] for the Approvedby1 claims & 
    outputs('Compose')[1] for other

     

     

     

     
    Hope this helps.

    --------------------------------------------------------------------------------

    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

  • fsim Profile Picture
    75 on at

    @jinivthakkar 

    sorry for the delay .

    I got an error using your solution:

    The template language function 'split' expects its first parameter to be of type string. The provided value is of type 'Array'. 

    but if I look at the source it's a string:

           "email": "f...s@sch.com;b...s@sc.com"
    but the split don't work 😕

    edit: I feel that the issue is in the ""

     

  • Verified answer
    fsim Profile Picture
    75 on at

    Final solution

    compose with

    split(replace(body('Get_file_properties')?['ContractOwner'],'"',''),';')

     

    then a for each with the output of the compose to save the emails in an array variable

    append to variable OwnerVar

    {
    "Claims": "@{items('Apply_to_each')}"
    }

    and finaly in the update properties I can save the OwnerVar in a Person or group field.

    I'm not sure why this double quotes made such troubles...

     

     

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
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard