cancel
Showing results for 
Search instead for 
Did you mean: 
DeviKrishna

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’.

DeviKrishna_0-1650361311489.png

  • 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}})

 

DeviKrishna_1-1650361418577.png

  • Now let us test the app. Click on Preview the App.

DeviKrishna_2-1650361434064.png

 

  • Enter the Inputs and click on submit.

DeviKrishna_3-1650361452215.png

 

  • Verify in Tables->EntityName(ProfileDetails)->Data if the new data is created.

DeviKrishna_4-1650361467080.png

Click on Edit record ,

DeviKrishna_5-1650361477180.png

  • 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.