How To Conditionally Show Content Based On User Web Roles With Microsoft Power Apps Portal Pages

Rachel Lowenstein here with part of my Microsoft Power Apps Portal Pages How To Series. This blog looks at how to conditionally show or hide content based on the current logged in users web role.

Sometimes you need to be able to hide data from CRM based on the logged in user of the portal. There is a quick and easy portion of code that will allow you to do just this!

Within your preferred code editor OR within the portal pages editor, enter this portion of code above the top HTML tag that contains data you want to hide. You are able to include multiple web roles as well by adding commas between the list (see second photo example):

Photo 1
Power Apps Photo 2
Photo 2

With this information, you will be able to show or hide data based on web roles established in the Portal Management app for users in the Power Apps portal.

Let us know what scenarios this feature would help you with; we are always excited to hear from our clients and their success stories using Microsoft products.

By Rachel Lowenstein, Dynamics 365 Technical Consultant

Working with New Dynamic

New Dynamic is a Microsoft Solutions Partner focused on the Dynamics 365 Customer Engagement and Power Platforms. Our team of dedicated professionals strives to provide first-class experiences incorporating integrity, teamwork, and a relentless commitment to our client’s success.

Contact Us today to transform your sales productivity and customer buying experiences.

Source link

Leave a Reply

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