Hi @HH-22080318-0,
Before you can upload an image or file to a Dataverse column, the record must already exist. This isn’t a setting you can enable or disable.
A good approach is to create a JavaScript function. With client-side JavaScript, you can automatically save a record when a field changes. For your case, you can attach the function to the LocationName field. When the value changes, the record will be saved automatically, and then you’ll be able to upload an image or file without manually saving first.
Here’s an example you can use:
function autoSaveOnLocationChange(executionContext) {
var formContext = executionContext.getFormContext();
formContext.data.entity.save();
}
Microsoft provides detailed documentation on form events: Learn Documentation
You can create and edit the JavaScript file using Visual Studio Code and then add it to your solution in Power Apps.
timl
169
Super User 2025 Season 2
Michael E. Gernaey
136
Super User 2025 Season 2
Gagan Singh
73