Overview: I need to be able to upload pictures or an file for that matter and persist the file in a Dataverse entity. This took me a little longer than it should have.
Notes: I added a "Add picture" control to the screen, I also added a label and a icon ro Clear the uploaded image.
I also added a save button, here I persist to a Dataverse table named "Evidence", The Evidence table has a column called "File" of type "File". The part that took me awhile in the Patch statement was getting the file into the correct format (as it is a record not a picture). This works for any file upload but has the drawback of needing to change the lookup to "All file types".
No comments:
Post a Comment