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 / 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

 

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

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

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard