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 / Power Apps attachment ...
Power Apps
Unanswered

Power Apps attachment formula works by default but not when I try to add it into container

(0) ShareShare
ReportReport
Posted on by 131
hi everyone,
 
i am facing an issue in power app where my attachment display logic works when im using the classic "edit form" but not when i try to customise the form.
 
This is what I have in the default classic edit form vs the one i put it in container
 
  Form2 My customise form
DataSource
MAS56Attachments
MAS56Attachments
DefaultMode
FormMode.Edit
//If(IsBlank(varAttachmentRecord.ID)||IsBlank(LookUp(MAS56Attachments,MAS56ID.ID=varMasterData.ID)),FormMode.New,FormMode.Edit)
FormMode.Edit
Item
First(
    SortByColumns(
        Filter(
            MAS56Attachments,
            MAS56ID.ID = varMasterData.ID
        ),
        "modifiedon",
        SortOrder.Descending
    )
)
First(
    SortByColumns(
        Filter(
            MAS56Attachments,
            MAS56ID.ID = varMasterData.ID
        ),
        "modifiedon",
        SortOrder.Descending
    )
)
 
  Attachment_DataCard2 Attachment_DataCard3 (my customised form)
DataField
"cr437_attachment"
"cr437_attachment"
Default
If(!IsBlank(ThisItem.Attachment.FileName), Table({DisplayName: ThisItem.Attachment.FileName, Value: ThisItem.Attachment.Value}), Blank())
If(!IsBlank(ThisItem.Attachment.FileName), Table({DisplayName: ThisItem.Attachment.FileName, Value: ThisItem.Attachment.Value}), Blank())
Displayname
DataSourceInfo([@MAS56Attachments],DataSourceInfo.DisplayName,'cr437_attachment')
DataSourceInfo([@MAS56Attachments],DataSourceInfo.DisplayName,'cr437_attachment')
 
  Datacardvalue10 Datacardvalue12 (my customised form)
Default
Parent.Default
Attachment_DataCard3.Default
 
as u can see, the formula is the same but the result in the screenshot below is different

as the one at the bottom (my customised form) should show "Trip to New.." but it is not showing.
 
Please advise
Categories:
I have the same question (0)

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 414

#2
Valantis Profile Picture

Valantis 387

#3
timl Profile Picture

timl 344 Super User 2026 Season 1

Last 30 days Overall leaderboard