Add Files from Canvas App to File Column in Data Verse
Pre-requisites:
- Login to https://make.powerapps.com
- Create a table in Data Verse ‘ProfileDetails’
- Add a Column(‘ProfileDoc’) of Data type ‘File’.
- Navigate to Apps->Canvas App-> Create New or Open an existing App
- Add a Data card control
- Create a Submit Action.
- Use the following syntax on Submit Action to pass value to File column,
Patch(EntityName,Defaults(EntityName),{Name:TextInput3.Text,EmailID:TextInput1.Text,ProfilePic:UploadedImage1.Image,PhoneNo:TextInput4.Text,ProfileDoc:{FileName:First(DataCardValue3_1.Attachments).Name,
Value:First(DataCardValue3_1.Attachments).Value}})
- Now let us test the app. Click on Preview the App.
- Enter the Inputs and click on submit.
- Verify in Tables->EntityName(ProfileDetails)->Data if the new data is created.
Click on Edit record ,
- The record got created successfully and the attachment is seen on the file column.
- We have successfully added files from Canvas App to File Column in Data Verse.
*This post is locked for comments