Setting Default Publisher Prefix using Preferred Solutions in Power Apps

Leave a comment

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:

 

THANKS FOR READING. BEFORE YOU LEAVE, I NEED YOUR HELP.
 

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.

CARL

https://www.youtube.com/carldesouza

 

ABOUT CARL DE SOUZA

Carl de Souza is a developer and architect focusing on Microsoft Dynamics 365, Power BI, Azure, and AI.

carldesouza.comLinkedIn Twitter | YouTube

 

Leave a Reply

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