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

Updating List from Collection

Hi,

My collection Name is Entry and collection following,

NameDateLoginLogout
Dani17/05/202117/05/2021 05:30PM 

 

Now i want to update a SharePoint List from a Entry collection,

NameDateLoginLogout
Dani17/05/202117/05/2021 05:30PM 

 

 

How to update a SharePoint List from collection?

First i need to update a collection after that i need to update a list from collection.

 

Thanks,
Dhinesh

1 REPLY 1
v-bofeng-msft
Community Support
Community Support

Hi @Dhinesh28R :

Could you please describe your request in detail?

  • What's the meaning of "update a SharePoint List from collection"?What are the specific rules?

Case 1:I access you want to add new records to the SP list,the code should be:

Collect(YourSPList,Entry)

Case 2:If you want to update the original record in the SP List according to a certain correspondence, for example: use the record whose Name is "Dani" in Entry to update the record whose Name is "Dani" in the SP list.The code should be:

ForAll(
  Entry,
  Patch(
     YourSPList,
     Lookup(YourSPList,Name=Entry[@Name]),
     {Date:Entry[@Date],Login:Entry[@Login],Logout:Entry[@Logout]}
  )
)

Best Regards,

Bof

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (27,543)