cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ELPARANAENSE84
Frequent Visitor

Check, Lookup before patching in Sharpoint list

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.

1 ACCEPTED SOLUTION

Accepted Solutions
CNT
Community Champion
Community Champion

@ELPARANAENSE84 Ok use this code

Patch(BDPinturaProjeto, LookUp(BDPinturaProjeto, ID=ThisItem.ID && !IsBlank(ScannedBDPintura)), {UserBDPintura: TheUserName, DateBDPintura: Now(), StatusPaintBDPintura:PaintStatusYes.Text})

View solution in original post

5 REPLIES 5
CNT
Community Champion
Community Champion

@ELPARANAENSE84 Try the following code

Patch(BDPinturaProjeto, LookUp(BDPinturaProjeto, ID=ThisItem.ID && ScannedBDPintura=Blank()), {UserBDPintura: TheUserName, DateBDPintura: Now(), StatusPaintBDPintura:PaintStatusYes.Text})

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). 

CNT
Community Champion
Community Champion

@ELPARANAENSE84 Ok use this code

Patch(BDPinturaProjeto, LookUp(BDPinturaProjeto, ID=ThisItem.ID && !IsBlank(ScannedBDPintura)), {UserBDPintura: TheUserName, DateBDPintura: Now(), StatusPaintBDPintura:PaintStatusYes.Text})

View solution in original post

Works perfectly, thank you so much.

CNT
Community Champion
Community Champion

@ELPARANAENSE84 Glad it works. 😊

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (35,078)