cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dhinesh28R
Post Prodigy
Post Prodigy

List value not increment

Hi,

I have to update my list value by incrementing 1.

But its not getting updated.

 

Set(RP,LookUp(List,Field=Gallery.Selected.Field,People));

Patch(List,LookUp(List,Field=Gallery.Selected.Field),{People:RP+1});

But its not getting Increment in List

 

 

Thanks,

Dhinesh

13 REPLIES 13
CNT
Super User
Super User

@Dhinesh28R Is the global variable RP having a number set? What is the datatype of the People column?

@CNT  People column is a Number type. Rp is a Global Variable.

@Dhinesh28R Check the value in RP and make sure it is not blank.

@CNT , Yes man. It Is Blank.

 

Now what to do?

 

Thanks

@Dhinesh28R If Rp is blank it means that your LookUp is not returning any records. You'll have to sort that out. 

@CNT  In my List people column doesn't have any value means it's Blank correct.

People
 

 

Set(RP, LookUp(List, Field=Gallery.Selected.Field, People));

Now RP is Blank correct.

If it is blank how to Increment + 1 value in People filed.

 

Thanks

@Dhinesh28R Change the Set to this,

With({varRP:LookUp(List,Field=Gallery.Selected.Field,People)},
Set(RP,If(IsBlank(varRP),1,varRP))
);

@CNT , Its getting values in RP man.. But not updating on a List man.

@Dhinesh28R Check if LookUp(List,Field=Gallery.Selected.Field) is blank.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,750)