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 / When 'Copy file' to an...
Power Automate
Answered

When 'Copy file' to another library, the 'To' field (Email group) is missing

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

 

Hello

I have a flow that when applied to an item on the 'Contractor Library' creates a copy of that item on the 'Contractor Library COPY':Request for Approval.png

 

When I apply this flow to the item 'Contractor Request 3.pdf', the item is copied succssefully, to the second library, however, the 'To' field is not being copied. This field is necessary and it refers to the 'Owners' email group of the website. An email is sent to those contacts when the flow is executed.

 

 

Contractor Library.png

 

Contractor Library COPY.png

 

Why can't this field be copied? I have tried before with a single email address and it works fine in copying it, but when I am using a group email address this happens.

 

Any help would be appretiated.

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

    Hi @Anonymous,

     

    Please make sure that the types of fields involved are exactly the same.

    I am wondering if you are not setting the "To" field type and not paying attention to the following options. Please make sure that the settings of the options below match the field values.

    Or you could set the fields corresponding to the two libraries to be exactly the same.

    Image reference:

    Capture3.PNG

    Please take a try and see if issue still exist.

     

    Best Regards,

    Barry

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you @v-bacao-msft

    I have checked and the types of fields are the same. In fact, all properties of both columns are exacly the same.

     

    Columns To.png

     

     

     

  • v-bacao-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    If you want to copy the value of a custom field, you could use Update item/Update file properties action to update the corresponding field value.

    The itemId output by Copy file action is configured in Id field, and Get item output Dynamic content-To is configured in the To field.

    Like:

    Configure Update action after Copy file action.

    4.PNG

    Please take a try.

     

    Best Regards,

    Barry

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

     

    Thank you @v-bacao-msft

     

    I have tried update item before. I selected the email group in the 'To Claims' field. However, after running the flow, i got an error saying that this email group could not be found. I don't think 'To Claims' is the same field as the 'To' field.

    "The specified user Aménagement Hydroélectrique Bini à Warak Owners could not be found."

     

     

    Update item.png

     

    I could not use 'Update file' because it only allows me to update the content of the file.

    Update file 2.png

     

     

     

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    It wasn't working because I was using a SharePoint group list of emails on the 'To' field. SharePoint does not like this and so it does not copy the group email list. I had to use a workaround to get this right.

    First I initialize a Variable named 'ToEmails'. Then I evaluate if body('Get_item')['To']['DisplayName'] is

    null.
    If this ain't null then that means the 'To' is a person and thus I can obtain his email through body('Get_item')['To']['Email'].
    If it's null it means that the 'To' is a group. To obtain the group I need to Send a request to HTTP SharePoint to get the mailing list of the group ( through its DisplayName body('Get_item')['To']['DisplayName').
    After that I compose a list of all the emails using concat(variables('ToEmails'),items('Aplicar_a_cada_3')['Email'],'; ').
    Now I set the variable 'ToEmails' to be the output of the compose ( Outputs('Compor_2) ).

     

    Copy file Group Field.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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 112 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 52

#3
Ellis Karim Profile Picture

Ellis Karim 51 Super User 2026 Season 1

Last 30 days Overall leaderboard