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 / PowerApps If IsBlank()...
Power Apps
Answered

PowerApps If IsBlank() condition with SharePoint Attachment lookup

(0) ShareShare
ReportReport
Posted on by 73

Hello,

 

I am trying to lookup a SharePoint list attachment column and set a field's visibility accordingly but the below code is not working and throwing "The specific column is not accessible in this context". I tried with 'Has Attachments' too but getting different errors.


If(IsBlank(""),
With(
{
wRecord:
LookUp('SharePoint List', ID = BrowseGallery1.Selected.ID)
},

If(IsBlank(wRecord.Attachments), true, false) 

)
)

 

All other columns work perfectly without any issues. How to get this fixed?

 

Please help.

Categories:
  • rpersad Profile Picture
    831 on at
  • PowerUser39 Profile Picture
    73 on at

    @rpersad Thanks for your response but still getting same error even using IsEmpty.

  • Verified answer
    PowerUser39 Profile Picture
    73 on at

    I got it fixed by using 'Has attachment'. Initially I had A caps in the attachment when tried.

     

    If(IsBlank(""),
    With(
    {
    wRecord:
    LookUp('SharePoint List', ID = BrowseGallery1.Selected.ID)
    },

    If(IsBlank(wRecord.'Has attachments'), true, false)

    )
    )

     

    All good now!

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 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard