Hello everyone,
As you may know, Microsoft is currently deploying a new type of field on your favorite CDS environments : the Files !
Currently, you have the possibility to create the fields and use them on Flow or Canvas App, there is no current possibility to use them on a model driven app form. That’s where this control comes into the light !
There are 2 possibilities to use the control :
You can find the source code and the details of the control on my GitHub repo
You have the WebApi available calls to manage files.
In quick words, here is the process to upload the files to the File Field :
In that sample, my entity is carfup_entitywithfile
and my file field name is : carfup_primaryfile
carfup_entitywithfile
, my sub entity hosting the files is carfup_customattachment
and my file field name is : carfup_file
In order to download the package, you can go to the release tab of the repo.
You will find the unmanaged/managed version of the solution and the source code too if you want to improve the control !
I hope you will like it and enjoy the work.
I wish you a great end of the year 2019.
Cheers,
Clément
Original Post https://stuffandtacos.azurewebsites.net/2019/12/27/file-field-manager-for-model-driven-app/