cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
maxandriola
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
maxandriola
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

2 REPLIES 2
maxandriola
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.

Bro tell me how did you do that.. how to update cds table from collection

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

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