Hey all,
I had a Patch that suddenly stopped working. Basically it was an image field in CDS that had a Lookup to a main entity, so the main entity had a gallery of related photos that were taken with a camera control.
The images were stored using a button that saves the collection using the formula:
ForAll(colPhotos, Patch('Equipment Pictures', Defaults('Equipment Pictures'), {cr387_equipmentphoto: Url, 'Accident Report': galleryMain.Selected, Equipment: dropPickEquipmentEdit.Selected})); Clear(colPhotos); Navigate(scrPhotoView, ScreenTransition.None)
Url is the image in the colPhotos collection that the camera control populates. But now it says "The type of this argument 'cr387_equipmentphoto' does not match the expected type 'Record'. Found type 'image'.
So suddenly it is reading the image field in CDS as Record type.
Any ideas why this broke?