web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Unable to automate Web...
Power Pages
Answered

Unable to automate Web Role assignment in Enhanced Data Model

(0) ShareShare
ReportReport
Posted on by 3

There are criteria to determine authenticated users with enablement/ disablement of certain features on the website which I'm developing. I leveraged on Power Automate to determine those criteria, and automate the association of desired Web Role(s) with the corresponding Contact (Multiple Web Roles were predefined and associated with respective Web Pages accordingly). This was done well in the previous version, which was on Standard Data Model.

 

I just discovered this approach is no longer viable in Enhanced Data Model, since the N:N relationship between Web Role and Contact is no longer available/ visible. Tried to check this relationship schema through PowerApps, classic D365 customization, oData, all were no luck.

 

Manually assigning Web Role to Contact is definitely not acceptable by my client. Likely 2 ways to overcome:

  1. Fall back to Standard Data Model. (Gonna disable Enhanced Data Model and import solution over, not sure is this "fall back migration" feasible or not?)
  2. Manually show/ hide the menu and block access at page level with Liquid.

 

Your suggestion? Many thanks...

Categories:
I have the same question (0)
  • Verified answer
    OOlashyn Profile Picture
    3,496 Most Valuable Professional on at

    Hi @ian_lim ,

    It is still possible, but a bit more complicated. In short: Enhanced Data Model doesn't have separate tables for many things. Instead, it uses a table called Site Components that holds everything (from Web Role, Site Setting to Web Files). Then MS uses plugins and some magic to present those records as separate tables via Virtual Tables. So the Web Role that you see for the Enhanced Data Model (table name mspp_webrole) is actually just an abstraction on top of the Site Component table. So to associate your Web Role to the Contact you actually need to associate Site Component table. On the Contact table you have the Relationship called powerpagecomponent_mspp_webrole_contact. Use that relationship and odata id of the web role (mspp_webrole one) to associate the table (you can get Odata id if you get that web role via Get Row action or in next format https://<orgname>.crm.dynamics.com/api/data/v9.1/mspp_webroles(<guid>)). 

    OOlashyn_0-1699224087805.png

     

  • miracules Profile Picture
    2 on at

    I´ve got the same problem but on unrelating from the web role. Relating using the example above works fine.

    miracules_0-1708435007031.png

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 74 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 55

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard