I've created a CDS entity "picList" with two columns, one for Part Numbers, populated with unique part numbers, and one for Images. Images column is empty, assigned data type of image. In a canvas powerapp I have a gallery fed from this entity, I have a button, and I have a camera control. What I want to do is select a part number from the gallery then take a picture and save it to the Image column. Below is what I have for the button's OnSelect:
Patch(picLists,First(Filter(picLists,PartNums = Gallery2.Selected.PartNums)), {Image: Camera1.Photo});
This approach doesn't seem to be working. I'm hoping someone can steer me in the right direction. I'm worried that my concept of what CDS is and what it can do is all wrong. Thanks in advance.