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 / Check, Lookup before p...
Power Apps
Answered

Check, Lookup before patching in Sharpoint list

(0) ShareShare
ReportReport
Posted on by 22

Guys

 

I'm back again, need your help on this. This is what I use as patch function.

 

Patch(BDPinturaProjeto,ThisItem, {UserBDPintura: TheUserName, DateBDPintura: Now(), StatusPaintBDPintura:PaintStatusYes.Text});Set(varsingleScan1, "");Reset('ScanToFind-Engine');Refresh(BDPinturaProjeto)

 

And this is what I need, patch only if my column under the same sharepoint list empty. List is the Same (BDPinturaProjeto), colum to look before patching (ScannedBDPintura).

 

 

Thanks in advance.

Categories:
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @ELPARANAENSE84 Try the following code

    Patch(BDPinturaProjeto, LookUp(BDPinturaProjeto, ID=ThisItem.ID && ScannedBDPintura=Blank()), {UserBDPintura: TheUserName, DateBDPintura: Now(), StatusPaintBDPintura:PaintStatusYes.Text})
  • ELPARANAENSE84 Profile Picture
    22 on at

    I made a mistake explaining (sorry), and this is what I need(Do not allow Patch if my column under the same sharepoint list empty/blank). List name is the Same (BDPinturaProjeto), column to look (ScannedBDPintura). 

  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @ELPARANAENSE84 Ok use this code

    Patch(BDPinturaProjeto, LookUp(BDPinturaProjeto, ID=ThisItem.ID && !IsBlank(ScannedBDPintura)), {UserBDPintura: TheUserName, DateBDPintura: Now(), StatusPaintBDPintura:PaintStatusYes.Text})
  • ELPARANAENSE84 Profile Picture
    22 on at

    Works perfectly, thank you so much.

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @ELPARANAENSE84 Glad it works. 😊

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard