Home Power Apps / Custom Pages / Dataverse / Power Fx Setting Default Publisher Prefix using Preferred Solutions in Power Apps
Power Apps / Custom Pages / Dataverse / Power Fx · Feb 8, 2024 · 2 MIN READ

Setting Default Publisher Prefix using Preferred Solutions in Power Apps

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:

 

Carl de Souza
Keep learning. Keep building.

Explore AI, agents & Microsoft technology.

I share practical ideas, tutorials, and videos about AI, AI agents, Microsoft technologies, and the Power Platform.

Subscribe on YouTube →
Carl de Souza Enterprise Architect at Microsoft · AI Technology Expert

One Response to Setting Default Publisher Prefix using Preferred Solutions in Power Apps

Leave a Reply

Your email address will not be published. Required fields are marked *

Carl
KEEP LEARNING. KEEP BUILDING.

Explore AI, agents & Microsoft technology.

I share practical ideas, tutorials, and videos about AI, AI agents, Microsoft technologies, and the Power Platform.