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 Apps / Save attachments in a ...
Power Apps
Answered

Save attachments in a share point list from another list

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello everyone, 

 

I have a question about sharepoint. 

I want to select attachments using a dropdown on the sharepoint list and save these selected attachments to this sharepoint list from another SP list. 

The question is, whether it is possible to do and if it is possible, how than could I do it?

 

Ragards

 

Categories:
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Could you tell me:

    1. Do you have a list with many records? Does each record have (0-N) attachments?
    2. Do you want to use a combo box control to display all the attachments in the list?
    3. Do you want to use a button control to create a new record in another list?
    4. Are the attachments in the newly created record the attachments selected in the combo box control?(For example: Suppose you select attachment A and attachment B in the combo box control and click the button control. Do you want to create a new record in list b including these two attachments? )

     

    If my assumptions are correct, please refer to the steps below:

    1\ This is my list ‘LIST78’. It stores some records with attachments.

    v-xiaochen-msft_0-1614232048756.png

     

    v-xiaochen-msft_1-1614232048767.png

     

    v-xiaochen-msft_2-1614232048772.png

     

     

    2\ This is ‘LIST80’ . It is used to store attachments from ‘LIST78’

    v-xiaochen-msft_3-1614232048784.png

     

    .

    3\ Add a button control and set its onselect property to:

    ClearCollect(Test,0);ClearCollect(Test2,Filter(Ungroup(ForAll(Sequence(CountRows(LIST78)),Collect(Test,Last(Test).Value+1);Last(FirstN(LIST78,Last(Test).Value)).Attachments),"Value"),!IsBlank(Id)))

     

    4\ Add a combo box control ‘ComboBox1’ and set its Items property to:

    Test2

     

    5\ Set the combo box control’s onchange property to:

    ClearCollect(Test3,ComboBox1.SelectedItems)

     

    6\ Add a edit form control ‘Form3’ and set its DataSource property to:

    LIST80

     

    Set this form’s field like picture:

    v-xiaochen-msft_4-1614232048788.png

     

     

    Set the attachments datacard’s control’s property like picture:

    v-xiaochen-msft_5-1614232048809.png

     

     

    Set ‘Form3’ ‘s Visible property to:

    False

     

    7\ Add a button control and set its onselect property to:

    Patch(LIST80,Defaults(LIST80),{Title:"3"},Form3.Updates)

     

    8\ The result is as follows:

    v-xiaochen-msft_6-1614232048811.png

     

    v-xiaochen-msft_7-1614232048813.png

     

     

    Best Regards,

    Wearsky

    If my post helps, then please consider Accept it as the solution to help others. Thanks.

  • dghavban Profile Picture
    19 on at

    Hi Wearsky,

    I have similar issue, but my case is that I can see the attached file on my SharePoint list after submitting the form in Power Apps but I can  see all other data except the attachment in the SharePoint list

    My Power form is a 6-page form with the Attachment filed set on the first form page(form1_5) and  the submit button is on the last form (form1_8) has the following patch setting:

     

    Patch(
    'Incident Investigation-Working copy',
    Defaults('Incident Investigation-Working copy'),
    Form1_5.Updates,
    Form1_4.Updates,
    Form1_2.Updates,
    Form1_6.Updates,
    Form1_7.Updates,
    Form1_8.Updates
    );
    Notify(
    "Information has been submitted",
    NotificationType.Success
    );
    ResetForm(Form1_5);
    ResetForm(Form1_4);
    ResetForm(Form1_2);
    ResetForm(Form1_6);
    ResetForm(Form1_8);
    Navigate(General_infor)

     

    Form 1_5

    dghavban_2-1668524545271.png

     

    form 1_8 with submit button and error received after submitting the form:

    dghavban_1-1668528142309.png

     

     

    Please is there something am missing in the patch command?

    Looking forward to your help and support.

    Regards,

     

    Dvd

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 Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard