Dear Community,
I want a simple solution to upload photos directly to my Dataverse table, which is what my website is built on.
The answer is usually no. The upload, or how the attachment works in the Power Pages, is usually via Azure Blog or Notes.
It is just the way D365 has always been working this way.
When you insert your form to the page, you can enable the attachment.
And then you can see the upload option in your form.
I created a label called "Upload to D365", just to highlight by click the "Choose File" button, it will upload to D365. Most people will configure it as Notes. PS I also don't know my photo column is outside the frame.
I understand this and I know it is not possible to upload directly to my Dataverse table, until I tried the following.
In my table, there is already an image column.
When I inserted the new form to the page based on this table, the photo field get populated with the correct input control, which is expected.
Then I moved on to create my list page to display the table data, enabled view and edit for the record.
To my surprise, when I clicked on the View details, the photo field has actually displayed the image data that was stored in the table.
More surprisingly, if I select the Edit, I can delete the photo, and upload new photo.
I tried it and it writes straight back to the dataverse table and works smoothly.
As you can see, the input control here is responding to the Photo column in the table, not the Form attachment, which would have a different text label.
So that tells me, it is possible that in the Power Pages, you can have an input control that directly upload the data back to the Dataverse table.
When I tested the site on a tablet, it can also use the device camera to take photo and submit to the Dataverse.
So my question is, why in my New Form page, I couldn't have this input control working. It does not trigger an input control.
This error is almost like the Photo field is in the wrong mode.
All three forms are exactly the same but in different mode, Insert/ReadOnly/Edit.
The new form is in the Insert mode, but this Photo field, seems like trying to display the data, which of course has nothing to show.
Thank you very much!

Report
All responses (
Answers (