Any one have idea how to upload file in Common Data Service using Canvas PowerApps.
I got success with uploading images and signatures.
Tried many blogs and articles but no success.
Note: I am not talking about attachment. My focus is on File Data Type in CDS.
Screenshot attached.
Solved! Go to Solution.
Hi @sayyed007amir ,
Do you want to upload normal files (e.g. Excel, Word, PDF, ...etc) into the File type field in your Entity?
Actually, when you enable the File type field in your Edit form, the File Type field would generate a Attachments control to pick up files automatically.
then you could uploaded files to this File Type field through the generated Attachments control.
Currently, there is an known limits with the File Type field in CDS Entity, it could only store single one File for each record. Please check the following blog for more details:
https://powerapps.microsoft.com/en-us/blog/public-preview-of-file-attribute-in-power-apps/
Best regards,
Hi @sayyed007amir ,
Do you want to upload normal files (e.g. Excel, Word, PDF, ...etc) into the File type field in your Entity?
Actually, when you enable the File type field in your Edit form, the File Type field would generate a Attachments control to pick up files automatically.
then you could uploaded files to this File Type field through the generated Attachments control.
Currently, there is an known limits with the File Type field in CDS Entity, it could only store single one File for each record. Please check the following blog for more details:
https://powerapps.microsoft.com/en-us/blog/public-preview-of-file-attribute-in-power-apps/
Best regards,
Thanks, That's fine but can we upload using patch function.
Actually i was looking to upload file using custom form.
Hi @sayyed007amir ,
Yes, you can. Please check the following screenshot:
Patch(
'Your CDS Entity',
BrowseGallery1.Selected,
{
UploadedFile: {
FileName: First(DataCardValue9.Attachments).Name,
Value: First(DataCardValue9.Attachments).Value
}
}
)
Note: The DataCardValue9 represents the Attachments control in your Edit form
Best regards,
User | Count |
---|---|
193 | |
127 | |
88 | |
48 | |
42 |
User | Count |
---|---|
279 | |
162 | |
136 | |
81 | |
78 |