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
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn 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.

Top Solution Authors
Top Kudoed Authors
Users online (1,115)