web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / can't manipulate impor...
Power Apps
Answered

can't manipulate imported collection

(0) ShareShare
ReportReport
Posted on by 58

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

 

Categories:
I have the same question (0)
  • Verified answer
    v-sheyu-msft Profile Picture
    on at

    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/58730

     

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard