cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
keshamer
Advocate III
Advocate III

can't manipulate imported collection

Hi,

I can't manipulate imported collection.

 

screen 1

I import sharepoint list in a local collection with a button:

simple 

onselect: collect(localcollection;sharepointlist)

this is a simple sharepoint list with only 5 rows for tests. there will be more after and the collect function will filter.

Now go to screen 2

 

screen 2

I show my local cllection in a gallery  and when I click on an element it goes to screen 3

 

screen 3:

made a simple button

onselect : patch (localcollection;gallery.selected;{culumn1:"test"})

 

that doen't works: culumn1 exists, the type is good (simple line of text) and no error occured. Just nothing happen

I tryed:

 

patch (localcollection;lookup(localcollection;ID = gallery.selected.ID);{culumn1:"test"})

Still the same issue : no error, nothing changes

could anyone helps me?

kind regards

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-sheyu-msft
Community Support
Community Support

Hi @keshamer,

Can you share a bit more about your issue ?

 

I have made a test. There’s no issue on my side.

14.png

Set Onselect property of the button to :

Patch(collection1,Gallery1.Selected,{column1:"111111"})

15.png

Please check if “Gallery.selected” can return the correct value .

Please check if the default value of the column1 in the collection is blank.  If the default value of the column1 is blank ,you will be unable to update this field .

This is a known issue at the current time .The same issue link :https://powerusers.microsoft.com/t5/General-Discussion/Bug-Collection-From-Sharepoint-List/td-p/5873...

 

As an alternative, You can use UpdateIf function instead of Patch function .

 

Set onselect property of the button to :

UpdateIf(collection1,IsBlank(Gallery1.Selected.column1),{column1:"111"})

Regards,

Eason

Community Support Team _ Eason YU
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-sheyu-msft
Community Support
Community Support

Hi @keshamer,

Can you share a bit more about your issue ?

 

I have made a test. There’s no issue on my side.

14.png

Set Onselect property of the button to :

Patch(collection1,Gallery1.Selected,{column1:"111111"})

15.png

Please check if “Gallery.selected” can return the correct value .

Please check if the default value of the column1 in the collection is blank.  If the default value of the column1 is blank ,you will be unable to update this field .

This is a known issue at the current time .The same issue link :https://powerusers.microsoft.com/t5/General-Discussion/Bug-Collection-From-Sharepoint-List/td-p/5873...

 

As an alternative, You can use UpdateIf function instead of Patch function .

 

Set onselect property of the button to :

UpdateIf(collection1,IsBlank(Gallery1.Selected.column1),{column1:"111"})

Regards,

Eason

Community Support Team _ Eason YU
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

secondImage

Power Apps Community Call

Please join us on Wednesday, October 20th, at 8a PDT. Come and learn from our amazing speakers!

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,488)