Configure SharePoint Form control to add pictures/images
Follow below steps to configure SharePoint Form control in canvas app to add pictures/images to SharePoint lists:
1. Create a SharePoint online list and then create an image column in the SharePoint list.
2. Go to make.powerapps.com, create a blank canvas app and add SharePoint list data source.
3. Add Form control in app from Insert > Forms > Edit form
4. Set Data Source property of form control to SharePoint list data source and DefaultMode property to FormMode.New
5. Select form control from tree view, click on Edit fields option from Properties panel at the right side of screen.
6. Add your image column to form using + Add field option on Fields panel and select Add picture as a Control type as shown in below image. Power Apps will add Add picture control inside the data card for image column.
Add, update, or delete images in SharePoint/Microsoft Lists using Power Apps
When we plat the app and give data image and name come as like this in share point
Using Patch() function to add/update image column using Power Apps
You can also use the Patch() function to add or update an image in image columns in SharePoint/Microsoft Lists using Power apps canvas apps. You can use similar code as given below on OnSelect property of button control:
Patch(
‘Add image,updateordelete’,
Defaults(‘Add image,updateordelete’),
{
Title: TextInputControl.Text,
Image: ImageControl.Image
}
)
Delete an image from SharePoint image column using Power Apps
You can delete an image from SharePoint image column using Blank() value for image column in Power Apps Patch function:
Patch(
‘Add image,updateordelete’,
Defaults(‘Add image,updateordelete’),
{
Title: TextInputControl.Text,
Image: Blank()
}
)
Supported Image formats
Below image formats are supported currently while using this feature:
JPG and JPEG
PNG
GIF
TIF and TIFF
HEIC and HEIF
JPE, MEF, MRW, NEF, NRW, ORF, PANO, PEF, RW2, SPM, XBM, XCF
Limitations
Images up to 30MB in size are supported while adding/updating images.
image formats are supported currently while using this feature.