cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Update CDS with Collection?

Hi all,

 

I have a current situation where I am creating entries in a cds table using a collection.

The collection is tied to a gallery, and then the save button saves it to the entity.

But my issue is that I need to be able to remove items in the gallery and have it update in the cds as well.

I am able to update the collection, but when I save it, it just adds more records on top of the ones that I wanted to delete.

Is there a way to do this effectively? I would need to update not all the records, just ones with a specific lookup id that is associated with a larger entity. 

 

Thanks!

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Frequent Visitor

I found a solution. I just added a RemoveIf function before the Patch. Not sure why I didnt think of this before posting.

View solution in original post

1 REPLY 1
Highlighted
Frequent Visitor

I found a solution. I just added a RemoveIf function before the Patch. Not sure why I didnt think of this before posting.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (11,731)