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!

Microsoft Ignite 768x460.png

Find your focus

Explore the latest tools,training sessions,technical expertise, networking and more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,538)