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 / Attachments Control No...
Power Apps
Answered

Attachments Control Not working

(0) ShareShare
ReportReport
Posted on by 316

Hi,

I am trying with much frustration to display two Attachments controls from two data sources where the records are linked via the ID field in SharePoint.

My latest attempt to get this working was to create a scrollable canvas with the main form, and then under the main form I created two more sections / data cards that connect directly back to the data sources that I want to display the attachments from.

 When I'm editing my app, they seem to appear fine:

Iamglt_0-1614225425310.png

But when I play my app, I get the following screen:

Iamglt_1-1614225492394.png

So my question(s) are: Why is this happening (are there some restrictions with the attachments controls)?  Is there anyway I can get this working or is there a better way of doing this?

Cheers,

G.

Categories:
I have the same question (0)
  • mrleetyler Profile Picture
    270 on at

    the forms linked to the attachment control have no item source.

     

    if you want them to be new records add "newform(<formname>)" on a button or the screen load command.

     

    if it's pulling existing data change the item to reference the existing data (gallery1.selected for example)

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@Iamglt,

    Could you please tell me that how you set the Item of the Form?

    Do you want the form to display the attachment in the play mode?

    Actually, the default mode of the form is Edit which means that if you do not set the certain item of the form, it will be no item to display.

    I recommend that you try to set the Item of the form as below:

    Last(SPlist)

    Note: This will always display the latest record after you submit the form.

    Hope it could help.

    Regards,

    Qi

     

  • Iamglt Profile Picture
    316 on at

    Hi Qi,

    Thanks for your reply, but that solution did not work.  I want to be able to add new attachments of the record if it is is new, and edit any attachments if the record has already been created. I tried this in the 'Items' properties for both attachments boxes:

    Iamglt_0-1614290860457.png

    And for the second attachments box:

    Iamglt_1-1614290979831.png

    Maybe I should be putting a formula in the forms item, then another formula in the field item?

    Cheers,

    G.

     

  • Verified answer
    Iamglt Profile Picture
    316 on at

    OK I have finally fixed this.

    What I did was to use a scrollable canvas (as I have a collapsible read-only form and then another edit form (both connected to different data sources).  I created a new section (which creates a data card) and then created a new form.  I then selected the form, cut and pasted inside inside the data card.

    Then I set  forms item property I set to:

     

    gallery.selected

     

    Then I set the data card value set to:

     

    LookUp(My Datasource,ID = varCurrRecord).Attachments

     

    Where varCurrentRecord is the selected ID from the gallery.

    Cheers,

    G.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard