Microsoft has released new preview functionality to help making building Power Apps easier. In fact, this simple change will help a lot of developers from making a fairly common mistake, which is creating objects outside of a solution and thereby having these objects named with the publisher prefix of new_. No more! In this post, we will look at Preferred Solutions, which allow us to define a default solution and thereby default publisher prefix.
To enable preferred solutions, an admin will need to go into the PPAC and under Settings->Features, set Preferred solutions to On. The text shows “When on, Dataverse will automatically add any new or updated objects to the users’ preferred solution (when the user is not in the context of a solution)”:
Save this setting in the bottom right, and now when a user goes to the Power Apps maker portal they will see the option to set their preferred solution:
The default preferred solution is under Common Data Services Default Solution, I’m going to click Manage:
And here I’m going to change the solution to my Test one:
We see my solution is now marked as the preferred solution:
Now let’s create an object outside of a solution. If we create a new table:
And create the table:
The table will automatically appear in the Solution I chose as the default, in my case, Test:
And not just that, this table has inherited the publisher prefix of the solution:
No more new_ objects need to be created now, which I think is a big win for developers!
Check out my YouTube video walkthrough on Power Platform TV:
I AM SPENDING MORE TIME THESE DAYS CREATING YOUTUBE VIDEOS TO HELP PEOPLE LEARN THE MICROSOFT POWER PLATFORM.
IF YOU WOULD LIKE TO SEE HOW I BUILD APPS, OR FIND SOMETHING USEFUL READING MY BLOG, I WOULD REALLY APPRECIATE YOU SUBSCRIBING TO MY YOUTUBE CHANNEL.
THANK YOU, AND LET’S KEEP LEARNING TOGETHER.